1 #Services configuration
3 #Replace assets.packages definition
5 class: 'Symfony\Component\Asset\Packages'
6 arguments: [ '@rapsys_pack.path_package' ]
7 #Replace assets.context definition
9 class: 'Rapsys\PackBundle\Context\RequestStackContext'
10 arguments: [ '@request_stack', '%asset.request_context.base_path%', '%asset.request_context.secure%' ]
11 #Register assets pack package
12 rapsys_pack.path_package:
13 class: 'Rapsys\PackBundle\Package\PathPackage'
14 arguments: [ '/', '@assets.empty_version_strategy', '@assets.context' ]
16 #Register twig pack extension
17 rapsys_pack.pack_extension:
18 class: 'Rapsys\PackBundle\Extension\PackExtension'
19 arguments: [ '@file_locator', '@service_container', '@rapsys_pack.path_package', '@rapsys_pack.slugger_util' ]
20 tags: [ 'twig.extension' ]
21 #Register slugger utils service
22 rapsys_pack.slugger_util:
23 class: 'Rapsys\PackBundle\Util\SluggerUtil'
24 arguments: [ '%env(APP_SECRET)%' ]