X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/bb11546ae005add2bdf1865f764b46ee8fa234e6..ce72f37438a0198e8507799304dabb8b78900ea6:/Twig/PackExtension.php?ds=sidebyside 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')) {