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}
$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];
* {@inheritdoc}
*/
public function getAlias(): string {
- return 'rapsys_pack';
+ return RapsysPackBundle::getAlias();
}
}