SimLibaud /
SilRouteSecurityBundle
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * User: Simon Libaud |
||
| 4 | * Date: 12/03/2017 |
||
| 5 | * Email: [email protected]. |
||
| 6 | */ |
||
| 7 | namespace Sil\RouteSecurityBundle\DependencyInjection; |
||
| 8 | |||
| 9 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
||
| 10 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Class Configuration. |
||
| 14 | */ |
||
| 15 | class Configuration implements ConfigurationInterface |
||
| 16 | { |
||
| 17 | 5 | public function getConfigTreeBuilder(): TreeBuilder |
|
| 18 | { |
||
| 19 | 5 | $tree = new TreeBuilder('sil_route_security'); |
|
| 20 | // Keep compatibility with symfony/config < 4.2 |
||
| 21 | 5 | if (false === method_exists($tree, 'getRootNode')) { |
|
| 22 | $root = $tree->root('sil_route_security'); |
||
|
0 ignored issues
–
show
|
|||
| 23 | } else { |
||
| 24 | 5 | $root = $tree->getRootNode(); |
|
| 25 | } |
||
| 26 | |||
| 27 | $root |
||
| 28 | 5 | ->children() |
|
| 29 | 5 | ->booleanNode('enable_access_control')->defaultFalse()->end() |
|
| 30 | 5 | ->scalarNode('secured_routes_format')->defaultNull()->end() |
|
| 31 | 5 | ->scalarNode('ignored_routes_format')->defaultNull()->end() |
|
| 32 | 5 | ->arrayNode('ignored_routes')->prototype('scalar')->end()->end() |
|
| 33 | 5 | ->arrayNode('secured_routes')->prototype('scalar')->end()->end() |
|
| 34 | 5 | ->scalarNode('naming_strategy')->defaultNull()->end() |
|
| 35 | ; |
||
| 36 | |||
| 37 | 5 | return $tree; |
|
| 38 | } |
||
| 39 | } |
||
| 40 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.