]> Raphaƫl G. Git Repositories - packbundle/blobdiff - DependencyInjection/RapsysPackExtension.php
Remove path bundle parameter
[packbundle] / DependencyInjection / RapsysPackExtension.php
index ce77518d940088b639c2cba0a86a5e97e012528d..3a6ed53cbf716ca0ed208484b06661217ba0df0c 100644 (file)
 
 namespace Rapsys\PackBundle\DependencyInjection;
 
 
 namespace Rapsys\PackBundle\DependencyInjection;
 
+use Rapsys\PackBundle\RapsysPackBundle;
+
 use Symfony\Component\DependencyInjection\ContainerBuilder;
 use Symfony\Component\DependencyInjection\Extension\Extension;
 
 use Symfony\Component\DependencyInjection\ContainerBuilder;
 use Symfony\Component\DependencyInjection\Extension\Extension;
 
-use Rapsys\PackBundle\RapsysPackBundle;
-
 /**
  * This is the class that loads and manages your bundle configuration.
  *
 /**
  * This is the class that loads and manages your bundle configuration.
  *
@@ -49,10 +49,22 @@ class RapsysPackExtension extends Extension {
                //Set rapsyspack.alias key
                $container->setParameter($alias.'.alias', $alias);
 
                //Set rapsyspack.alias key
                $container->setParameter($alias.'.alias', $alias);
 
-               //Set rapsyspack.path key
-               $container->setParameter($alias.'.path', $config['path']);
+               //Set rapsyspack.cache key
+               $container->setParameter($alias.'.cache', $config['cache']);
+
+               //Set rapsyspack.public key
+               $container->setParameter($alias.'.public', $config['public']);
 
                //Set rapsyspack.version key
                $container->setParameter($alias.'.version', RapsysPackBundle::getVersion());
        }
 
                //Set rapsyspack.version key
                $container->setParameter($alias.'.version', RapsysPackBundle::getVersion());
        }
+
+       /**
+        * {@inheritdoc}
+        *
+        * @xxx Required by kernel to load renamed alias configuration
+        */
+       public function getAlias(): string {
+               return RapsysPackBundle::getAlias();
+       }
 }
 }