]> Raphaël G. Git Repositories - packbundle/commitdiff
Update to new symfony 4.x style
authorRaphaël Gertz <git@rapsys.eu>
Mon, 28 Oct 2019 18:21:17 +0000 (19:21 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 28 Oct 2019 18:21:17 +0000 (19:21 +0100)
DependencyInjection/Configuration.php

index 5456a29d0ccf02b56b7450e356c9aaf9cc29561e..bfa4b3cd424cb30af9051ded1b9035c98d51f9af 100644 (file)
@@ -22,7 +22,7 @@ class Configuration implements ConfigurationInterface {
         */
        public function getConfigTreeBuilder() {
                //Get TreeBuilder object
-               $treeBuilder = new TreeBuilder();
+               $treeBuilder = new TreeBuilder('parameters');
 
                //Get ExecutableFinder object
                $finder = new ExecutableFinder();
@@ -84,7 +84,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_pack')