From 4b24a03d0d1bcd396dc125603a3ae8d89fc536da Mon Sep 17 00:00:00 2001 From: daverner Date: Thu, 28 May 2020 15:25:31 +0200 Subject: [PATCH] Change configuration key name according to Symfony standard Signed-off-by: daverner --- DependencyInjection/Configuration.php | 2 +- DependencyInjection/SQLIEzToolboxExtension.php | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 11dd4a7..ba189b7 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -18,7 +18,7 @@ class Configuration implements ConfigurationInterface public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('sqli_eztoolbox'); + $rootNode = $treeBuilder->root('sqli_ez_toolbox'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for diff --git a/DependencyInjection/SQLIEzToolboxExtension.php b/DependencyInjection/SQLIEzToolboxExtension.php index e24132e..8db83c9 100644 --- a/DependencyInjection/SQLIEzToolboxExtension.php +++ b/DependencyInjection/SQLIEzToolboxExtension.php @@ -28,7 +28,7 @@ public function load(array $configs, ContainerBuilder $container) foreach ($config as $key => $value) { - $container->setParameter('sqli_eztoolbox.'.$key, $value); + $container->setParameter('sqli_ez_toolbox.'.$key, $value); } } } diff --git a/README.md b/README.md index 2a37d8a..f6f0c7a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ public function registerBundles() { $bundles = [ // ... - new SQLI\EzToolboxBundle\SqliEzToolboxBundle(), + new SQLI\EzToolboxBundle\SQLIEzToolboxBundle(), ]; } ``` @@ -52,7 +52,7 @@ php bin/console cache:clear Configure directories (and namespaces if not according to PSR-0 rules) entities to lookup : ```yml -sqli_eztoolbox: +sqli_ez_toolbox: entities: - { directory: 'Acme/AcmeBundle/Entity/Doctrine' } - { directory: 'Acme/AcmeBundle2/Entity/Doctrine', namespace: 'Acme\AcmeBundle2NoPSR0\ORM\Doctrine' }