Skip to content

Commit 6f8a37c

Browse files
committed
bug symfony#15202 [Security] allow to use method in XML configs (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Security] allow to use `method` in XML configs | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | 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. Commits ------- 9b0dfd4 [Security] allow to use `method` in XML configs
2 parents 63e02b8 + 9b0dfd4 commit 6f8a37c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/SecurityBundle/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)