]> Raphaël G. Git Repositories - airbundle/commitdiff
Switch to 4.2 symfony style
authorRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 03:18:18 +0000 (04:18 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 03:18:18 +0000 (04:18 +0100)
DependencyInjection/Configuration.php

index 13d24a7afe297048de5ecc4efc53840d280c0532..9be5f157c174345a808d28771bc49ab7e175a15d 100644 (file)
@@ -15,7 +15,7 @@ class Configuration implements ConfigurationInterface {
      * {@inheritdoc}
      */
     public function getConfigTreeBuilder() {
-        $treeBuilder = new TreeBuilder();
+        $treeBuilder = new TreeBuilder('parameters');
 
         // Here you should define the parameters that are allowed to
         // configure your bundle. See the documentation linked above for
@@ -36,7 +36,7 @@ class Configuration implements ConfigurationInterface {
                //Here we define the parameters that are allowed to configure the bundle.
                $treeBuilder
                        //Parameters
-                       ->root('parameters')
+                       ->getRootNode()
                                ->addDefaultsIfNotSet()
                                ->children()
                                        ->arrayNode('rapsys_air')