X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/packbundle/blobdiff_plain/bb11546ae005add2bdf1865f764b46ee8fa234e6..2ea87caa7cfe5a3248be9f47c514e8103dcdf730:/Twig/PackExtension.php diff --git a/Twig/PackExtension.php b/Twig/PackExtension.php index 5ce4ed6..c6e0d96 100644 --- a/Twig/PackExtension.php +++ b/Twig/PackExtension.php @@ -17,7 +17,8 @@ class PackExtension extends \Twig_Extension { $this->assetsPackages = $assetsPackages; //Set default prefix - $this->prefix = '@RapsysPackBundle/Resources/public/'; + //XXX: require symfony 3.3 + $this->prefix = $this->containerInterface->getParameter('kernel.project_dir').'/web/'; //Set default coutput $this->coutput = 'css/*.pack.css'; @@ -27,11 +28,11 @@ class PackExtension extends \Twig_Extension { $this->ioutput = 'img/*.pack.jpg'; //Set default cfilter - $this->cfilter = array('CPackFilter'); + $this->cfilter = array('Rapsys\PackBundle\Twig\Filter\CPackFilter'); //Set default jfilter - $this->jfilter = array('JPackFilter'); + $this->jfilter = array('Rapsys\PackBundle\Twig\Filter\JPackFilter'); //Set default ifilter - $this->ifilter = array('IPackFilter'); + $this->ifilter = array('Rapsys\PackBundle\Twig\Filter\IPackFilter'); //Load configuration if ($containerInterface->hasParameter('rapsys_pack')) {