]> Raphaël G. Git Repositories - packbundle/commitdiff
Switch to web directory for compiled assets by default
authorRaphaël Gertz <git@rapsys.eu>
Mon, 26 Mar 2018 09:30:25 +0000 (11:30 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 26 Mar 2018 09:30:25 +0000 (11:30 +0200)
Resources/config/parameters.yml
Twig/PackExtension.php

index 2b22993c44002e7596ab4595d8d1dbb6be808975..900a6c195b0105d21426274f68b6bc94ac1c8223 100644 (file)
@@ -21,7 +21,7 @@ framework:
     assets:
         packages:
             rapsys_pack:
     assets:
         packages:
             rapsys_pack:
-                base_path: '/bundles/rapsyspack'
+                base_path: ~
                 version: ~
 
 # Force cache disable to regenerate resources each time
                 version: ~
 
 # Force cache disable to regenerate resources each time
index 5ce4ed6e41f009bcb1c59b3604ccb10de6a3ead2..ee84c47b1274f11cf454a4ee94d5a77cadf2d48b 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';