X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/ba604d9d493cbee780c6345c89bab69395117319..e2f3a2bc4d37351dd216f03625901a0f06190e67:/DependencyInjection/RapsysUserExtension.php?ds=sidebyside diff --git a/DependencyInjection/RapsysUserExtension.php b/DependencyInjection/RapsysUserExtension.php index d026ae4..1c1d1cf 100644 --- a/DependencyInjection/RapsysUserExtension.php +++ b/DependencyInjection/RapsysUserExtension.php @@ -5,6 +5,8 @@ namespace Rapsys\UserBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\Extension; +use Rapsys\UserBundle\RapsysUserBundle; + /** * This is the class that loads and manages your bundle configuration. * @@ -24,18 +26,18 @@ class RapsysUserExtension extends Extension { //Detect when no user configuration is provided if ($configs === [[]]) { //Prepend default config - $container->prependExtensionConfig($this->getAlias(), $config); + $container->prependExtensionConfig(self::getAlias(), $config); } //Save configuration in parameters - $container->setParameter($this->getAlias(), $config); + $container->setParameter(self::getAlias(), $config); } /** * {@inheritdoc} */ - public function getAlias() { - return 'rapsys_user'; + public function getAlias(): string { + return RapsysUserBundle::getAlias(); } /** @@ -46,7 +48,7 @@ class RapsysUserExtension extends Extension { * @param $depth The maxmium depth * @param $sep The separator string */ - /*protected function flatten($array, $path, $depth = 10, $sep = '.') { + /*protected function flatten($array, $path = '', $depth = 10, $sep = '.') { //Init res $res = array();