]> Raphaƫl G. Git Repositories - userbundle/blobdiff - DependencyInjection/RapsysUserExtension.php
Add user checker
[userbundle] / DependencyInjection / RapsysUserExtension.php
index 6dd55c74a60c73f0728f2a688c21b8096ec7dc0b..1c1d1cf7d6ef2cfc66e5184d718a1cd4e1218c58 100644 (file)
@@ -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();
        }
 
        /**