These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\ArticleBundle\DependencyInjection; |
||
4 | |||
5 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
||
6 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||
7 | |||
8 | /** |
||
9 | * This is the class that validates and merges configuration from your app/config files |
||
10 | * |
||
11 | * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class} |
||
12 | */ |
||
13 | View Code Duplication | class Configuration implements ConfigurationInterface |
|
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | 2 | public function getConfigTreeBuilder() |
|
19 | { |
||
20 | 2 | $treeBuilder = new TreeBuilder('kunstmaan_article'); |
|
21 | 2 | if (method_exists($treeBuilder, 'getRootNode')) { |
|
22 | 2 | $rootNode = $treeBuilder->getRootNode(); |
|
23 | } else { |
||
24 | // BC layer for symfony/config 4.1 and older |
||
25 | $rootNode = $treeBuilder->root('kunstmaan_article'); |
||
0 ignored issues
–
show
|
|||
26 | } |
||
27 | |||
28 | // Here you should define the parameters that are allowed to |
||
29 | // configure your bundle. See the documentation linked above for |
||
30 | // more information on that topic. |
||
31 | 2 | return $treeBuilder; |
|
32 | } |
||
33 | } |
||
34 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.