Skip to content

Commit de3abd1

Browse files
committed
[Security] allow to use method in XML configs
Before this change, you always had to use the `methods` key which is inconsistent compared to other options like `roles` and `ips` for which it was possible to use their singular versions.
1 parent 35f1980 commit de3abd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DependencyInjection/MainConfiguration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ private function addAccessControlSection(ArrayNodeDefinition $rootNode)
158158
->cannotBeOverwritten()
159159
->prototype('array')
160160
->fixXmlConfig('ip')
161+
->fixXmlConfig('method')
161162
->children()
162163
->scalarNode('requires_channel')->defaultNull()->end()
163164
->scalarNode('path')

0 commit comments

Comments
 (0)