- #TODO: see how we deal with asset url generation: see Rapsys/PackBundle/Twig/PackTokenParser.php +243
- #framework:
- # assets:
- # packages:
- # rapsys_pack:
- # base_path: '/'
- # version: ~
- #
- ## Force cache disable to regenerate resources each time
- ##twig:
- ## cache: ~
+ //The bundle default values
+ $defaults = [
+ 'filters' => [
+ 'css' => [
+ 0 => [
+ 'class' => 'Rapsys\PackBundle\Filter\CPackFilter',
+ 'args' => [
+ $finder->find('cpack', '/usr/local/bin/cpack'),
+ 'minify'
+ ]
+ ]
+ ],
+ 'img' => [
+ 0 => [
+ 'class' => 'Rapsys\PackBundle\Filter\IPackFilter',
+ 'args' => []
+ ]
+ ],
+ 'js' => [
+ 0 => [
+ 'class' => 'Rapsys\PackBundle\Filter\JPackFilter',
+ 'args' => [
+ $finder->find('jpack', '/usr/local/bin/jpack'),
+ 'best'
+ ]
+ ]
+ ]
+ ],
+ #TODO: migrate to public.path, public.url and router->generateUrl ?
+ #XXX: that would means dropping the PathPackage stuff and use static route like rapsys_pack_facebook
+ 'output' => [
+ 'css' => '@RapsysPack/css/*.pack.css',
+ 'img' => '@RapsysPack/img/*.pack.jpg',
+ 'js' => '@RapsysPack/js/*.pack.js'
+ ],
+ 'path' => dirname(__DIR__).'/Resources/public',
+ 'token' => 'asset_url'
+ ];