X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/packbundle/blobdiff_plain/0d6adabf6050f4496f683fab894e0da5ac42d57b..44ea2f60a6d17b6c9475a6e87a1f520200c7d036:/Extension/PackExtension.php diff --git a/Extension/PackExtension.php b/Extension/PackExtension.php index 118de0c..40863e9 100644 --- a/Extension/PackExtension.php +++ b/Extension/PackExtension.php @@ -16,8 +16,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpKernel\Config\FileLocator; use Twig\Extension\AbstractExtension; -use Rapsys\PackBundle\Util\SluggerUtil; use Rapsys\PackBundle\Parser\TokenParser; +use Rapsys\PackBundle\RapsysPackBundle; +use Rapsys\PackBundle\Util\SluggerUtil; /** * {@inheritdoc} @@ -57,7 +58,7 @@ class PackExtension extends AbstractExtension { $this->package = $package; //Retrieve bundle config - if ($parameters = $container->getParameter($this->getAlias())) { + if ($parameters = $container->getParameter(self::getAlias())) { //Set config, output and filters arrays foreach(['config', 'output', 'filters'] as $k) { $this->$k = $parameters[$k]; @@ -95,6 +96,6 @@ class PackExtension extends AbstractExtension { * {@inheritdoc} */ public function getAlias(): string { - return 'rapsys_pack'; + return RapsysPackBundle::getAlias(); } }