+ //The bundle default values
+ $defaults = [
+ 'config' => [
+ 'name' => 'asset_url',
+ 'scheme' => 'https://',
+ 'timeout' => (int)ini_get('default_socket_timeout'),
+ 'agent' => (string)ini_get('user_agent')?:'rapsys_pack/0.2.1',
+ 'redirect' => 5
+ ],
+ #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',
+ 'js' => '@RapsysPack/js/*.pack.js',
+ 'img' => '@RapsysPack/img/*.pack.jpg'
+ ],
+ 'filters' => [
+ 'css' => [
+ 0 => [
+ 'class' => 'Rapsys\PackBundle\Filter\CPackFilter',
+ 'args' => [
+ $finder->find('cpack', '/usr/local/bin/cpack'),
+ 'minify'
+ ]
+ ]
+ ],
+ 'js' => [
+ 0 => [
+ 'class' => 'Rapsys\PackBundle\Filter\JPackFilter',
+ 'args' => [
+ $finder->find('jpack', '/usr/local/bin/jpack'),
+ 'best'
+ ]
+ ]
+ ],
+ 'img' => [
+ 0 => [
+ 'class' => 'Rapsys\PackBundle\Filter\IPackFilter',
+ 'args' => []
+ ]
+ ],
+ ],
+ 'path' => dirname(__DIR__).'/Resources/public',
+ ];