From: Raphaƫl Gertz Date: Thu, 1 Feb 2024 03:18:18 +0000 (+0100) Subject: Switch to 4.2 symfony style X-Git-Tag: 0.3.0~121 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/9d73dd55049c83da8b4d7e018204064b1dd9fe63?ds=sidebyside;hp=b489b0c2c4aded2126374d350b2a3dcab5c9943b Switch to 4.2 symfony style --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 13d24a7..9be5f15 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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')