]> Raphaƫl G. Git Repositories - packbundle/blobdiff - DependencyInjection/RapsysPackExtension.php
Set constructor parameters as optional
[packbundle] / DependencyInjection / RapsysPackExtension.php
index 435498e700688ab7355512944111a8f2f0bbac2f..d6e3c8005cbc06ad3228a10bfcb342bc318c04f4 100644 (file)
@@ -46,13 +46,22 @@ class RapsysPackExtension extends Extension {
                //Save configuration in parameters
                $container->setParameter($alias, $config);
 
                //Save configuration in parameters
                $container->setParameter($alias, $config);
 
-               //Set rapsys_pack.alias key
+               //Set rapsyspack.alias key
                $container->setParameter($alias.'.alias', $alias);
 
                $container->setParameter($alias.'.alias', $alias);
 
-               //Set rapsys_pack.path key
+               //Set rapsyspack.path key
                $container->setParameter($alias.'.path', $config['path']);
 
                $container->setParameter($alias.'.path', $config['path']);
 
-               //Set rapsys_pack.version key
+               //Set rapsyspack.version key
                $container->setParameter($alias.'.version', RapsysPackBundle::getVersion());
        }
                $container->setParameter($alias.'.version', RapsysPackBundle::getVersion());
        }
+
+       /**
+        * {@inheritdoc}
+        *
+        * @xxx Required by kernel to load renamed alias configuration
+        */
+       public function getAlias(): string {
+               return RapsysPackBundle::getAlias();
+       }
 }
 }