From: Raphaƫl Gertz Date: Wed, 11 Aug 2021 18:43:53 +0000 (+0200) Subject: Use RapsysUserBundle::getAlias to retrieve alias X-Git-Tag: 0.2.0~65 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/a0999bbca7ea89eef1e55506da4b3bb0fef6daec Use RapsysUserBundle::getAlias to retrieve alias --- diff --git a/DependencyInjection/RapsysUserExtension.php b/DependencyInjection/RapsysUserExtension.php index 6dd55c7..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(); } /**