1 | <?php |
||||
2 | |||||
3 | declare(strict_types=1); |
||||
4 | |||||
5 | namespace CalendarBundle\DependencyInjection; |
||||
6 | |||||
7 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
||||
8 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||||
9 | |||||
10 | /** |
||||
11 | * This is the class that validates and merges configuration from your app/config files. |
||||
12 | * |
||||
13 | * To learn more see {@link https://symfony.com/doc/current/bundles/extension.html} |
||||
14 | */ |
||||
15 | class Configuration implements ConfigurationInterface |
||||
16 | { |
||||
17 | /** |
||||
18 | * {@inheritdoc} |
||||
19 | */ |
||||
20 | 1 | public function getConfigTreeBuilder(): TreeBuilder |
|||
21 | { |
||||
22 | 1 | $treeBuilder = new TreeBuilder('calendar'); |
|||
23 | 1 | $rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('calendar'); |
|||
0 ignored issues
–
show
Unused Code
introduced
by
![]() The method
root() does not exist on Symfony\Component\Config...ion\Builder\TreeBuilder .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
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. ![]() |
|||||
24 | |||||
25 | 1 | return $treeBuilder; |
|||
26 | } |
||||
27 | } |
||||
28 |