X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/0d6adabf6050f4496f683fab894e0da5ac42d57b..fe8e7a3c4c1d503c850cbd735806031b3e7d036d:/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(); } }