+ //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.0',
+ 'redirect' => 5
+ ],
+ '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' => []
+ ]
+ ],
+ ],
+ 'public' => [
+ 'path' => dirname(__DIR__).'/Resources/public',
+ 'url' => '/bundles/'.str_replace('_', '', $alias)
+ ]
+ ];