[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.
This commit is contained in:
Christian Flothmann 2015-07-05 10:40:11 +02:00
parent 7c36f0b9a0
commit 9b0dfd4267
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ class MainConfiguration implements ConfigurationInterface
->cannotBeOverwritten()
->prototype('array')
->fixXmlConfig('ip')
->fixXmlConfig('method')
->children()
->scalarNode('requires_channel')->defaultNull()->end()
->scalarNode('path')