Skip to content

Commit

Permalink
bug #15202 [Security] allow to use method in XML configs (xabbuh)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fabpot committed Jul 8, 2015
2 parents 63e02b8 + 9b0dfd4 commit 6f8a37c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -158,6 +158,7 @@ private function addAccessControlSection(ArrayNodeDefinition $rootNode)
->cannotBeOverwritten()
->prototype('array')
->fixXmlConfig('ip')
->fixXmlConfig('method')
->children()
->scalarNode('requires_channel')->defaultNull()->end()
->scalarNode('path')
Expand Down

0 comments on commit 6f8a37c

Please sign in to comment.