Skip to content

Commit

Permalink
Change configuration key name according to Symfony standard
Browse files Browse the repository at this point in the history
Signed-off-by: daverner <daverner@sqli.com>
  • Loading branch information
daverner committed May 28, 2020
1 parent 20f6543 commit 4b24a03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/SQLIEzToolboxExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function registerBundles()
{
$bundles = [
// ...
new SQLI\EzToolboxBundle\SqliEzToolboxBundle(),
new SQLI\EzToolboxBundle\SQLIEzToolboxBundle(),
];
}
```
Expand Down Expand Up @@ -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' }
Expand Down

0 comments on commit 4b24a03

Please sign in to comment.