]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Twig/PackExtension.php
Fix constructor namespace
[packbundle] / Twig / PackExtension.php
index 5ce4ed6e41f009bcb1c59b3604ccb10de6a3ead2..c6e0d9684082b24cec3f0ab1f6b3c2e06bd2447e 100644 (file)
@@ -17,7 +17,8 @@ class PackExtension extends \Twig_Extension {
                $this->assetsPackages = $assetsPackages;
 
                //Set default prefix
                $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';
 
                //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->ioutput = 'img/*.pack.jpg';
 
                //Set default cfilter
-               $this->cfilter = array('CPackFilter');
+               $this->cfilter = array('Rapsys\PackBundle\Twig\Filter\CPackFilter');
                //Set default jfilter
                //Set default jfilter
-               $this->jfilter = array('JPackFilter');
+               $this->jfilter = array('Rapsys\PackBundle\Twig\Filter\JPackFilter');
                //Set default ifilter
                //Set default ifilter
-               $this->ifilter = array('IPackFilter');
+               $this->ifilter = array('Rapsys\PackBundle\Twig\Filter\IPackFilter');
 
                //Load configuration
                if ($containerInterface->hasParameter('rapsys_pack')) {
 
                //Load configuration
                if ($containerInterface->hasParameter('rapsys_pack')) {