]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Twig/PackExtension.php
Add bundle configuration system
[packbundle] / Twig / PackExtension.php
index 5ce4ed6e41f009bcb1c59b3604ccb10de6a3ead2..ee84c47b1274f11cf454a4ee94d5a77cadf2d48b 100644 (file)
@@ -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';