]> Raphaƫl G. Git Repositories - packbundle/blob - Resources/config/packages/rapsys_pack.yaml
Add osm util class
[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 intl util class alias
26 Rapsys\PackBundle\Util\IntlUtil:
27 alias: 'rapsys_pack.intl_util'
28 #Register osm util service
29 rapsys_pack.osm_util:
30 class: 'Rapsys\PackBundle\Util\OsmUtil'
31 arguments: [ '%kernel.project_dir%/var/cache', '%rapsys_pack.public.path%', '%rapsys_pack.public.url%' ]
32 public: true
33 #Register osm util class alias
34 Rapsys\PackBundle\Util\OsmUtil:
35 alias: 'rapsys_pack.osm_util'
36 #Register slugger util service
37 rapsys_pack.slugger_util:
38 class: 'Rapsys\PackBundle\Util\SluggerUtil'
39 arguments: [ '%kernel.secret%' ]
40 public: true
41 #Register slugger util class alias
42 Rapsys\PackBundle\Util\SluggerUtil:
43 alias: 'rapsys_pack.slugger_util'