]> Raphaƫl G. Git Repositories - packbundle/blob - Resources/config/packages/rapsys_pack.yaml
Add cleanup ideas for packer
[packbundle] / Resources / config / packages / rapsys_pack.yaml
1 #Services configuration
2 services:
3 #Replace assets.packages definition
4 assets.packages:
5 class: 'Symfony\Component\Asset\Packages'
6 arguments: [ '@rapsys_pack.path_package' ]
7 #Replace assets.context definition
8 assets.context:
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' ]
15 public: true
16 #Register twig pack extension
17 rapsys_pack.pack_extension:
18 class: 'Rapsys\PackBundle\Extension\PackExtension'
19 arguments: [ '@service_container', '@rapsys_pack.intl_util', '@file_locator', '@rapsys_pack.path_package', '@rapsys_pack.slugger_util' ]
20 tags: [ 'twig.extension' ]
21 #Register intl util service
22 rapsys_pack.intl_util:
23 class: 'Rapsys\PackBundle\Util\IntlUtil'
24 public: true
25 #Register facebook event subscriber
26 Rapsys\PackBundle\Subscriber\FacebookSubscriber:
27 arguments: [ '@router', '%rapsys_air.locales%' ]
28 tags: [ 'kernel.event_subscriber' ]
29 #Register intl util class alias
30 Rapsys\PackBundle\Util\IntlUtil:
31 alias: 'rapsys_pack.intl_util'
32 #Register map util service
33 rapsys_pack.map_util:
34 class: 'Rapsys\PackBundle\Util\MapUtil'
35 arguments: [ '@router', '@rapsys_pack.slugger_util' ]
36 public: true
37 #Register map util class alias
38 Rapsys\PackBundle\Util\MapUtil:
39 alias: 'rapsys_pack.map_util'
40 #Register slugger util service
41 rapsys_pack.slugger_util:
42 class: 'Rapsys\PackBundle\Util\SluggerUtil'
43 arguments: [ '%kernel.secret%' ]
44 public: true
45 #Register slugger util class alias
46 Rapsys\PackBundle\Util\SluggerUtil:
47 alias: 'rapsys_pack.slugger_util'
48 #Register map controller
49 Rapsys\PackBundle\Controller\MapController:
50 arguments: [ '@service_container', '@rapsys_pack.map_util', '@rapsys_pack.slugger_util', '%kernel.project_dir%/var/cache/map', '%rapsys_pack.public.path%/map' ]
51 tags: [ 'controller.service_arguments' ]