]> Raphaƫl G. Git Repositories - packbundle/blob - Resources/config/packages/rapsys_pack.yaml
Rename public to path
[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 facebook util service
33 rapsys_pack.facebook_util:
34 class: 'Rapsys\PackBundle\Util\FacebookUtil'
35 arguments: [ '@router', '%kernel.project_dir%/var/cache', '%rapsys_pack.path%' ]
36 public: true
37 #Register facebook util class alias
38 Rapsys\PackBundle\Util\FacebookUtil:
39 alias: 'rapsys_pack.facebook_util'
40 #Register image util service
41 rapsys_pack.image_util:
42 class: 'Rapsys\PackBundle\Util\ImageUtil'
43 arguments: [ '@router', '@rapsys_pack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsys_pack.path%' ]
44 public: true
45 #Register image util class alias
46 Rapsys\PackBundle\Util\ImageUtil:
47 alias: 'rapsys_pack.image_util'
48 #Register map util service
49 rapsys_pack.map_util:
50 class: 'Rapsys\PackBundle\Util\MapUtil'
51 arguments: [ '@router', '@rapsys_pack.slugger_util' ]
52 public: true
53 #Register map util class alias
54 Rapsys\PackBundle\Util\MapUtil:
55 alias: 'rapsys_pack.map_util'
56 #Register slugger util service
57 rapsys_pack.slugger_util:
58 class: 'Rapsys\PackBundle\Util\SluggerUtil'
59 arguments: [ '%kernel.secret%' ]
60 public: true
61 #Register slugger util class alias
62 Rapsys\PackBundle\Util\SluggerUtil:
63 alias: 'rapsys_pack.slugger_util'
64 #Register image controller
65 Rapsys\PackBundle\Controller\ImageController:
66 arguments: [ '@service_container', '@rapsys_pack.image_util', '@rapsys_pack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsys_pack.path%' ]
67 tags: [ 'controller.service_arguments' ]
68 #Register map controller
69 Rapsys\PackBundle\Controller\MapController:
70 arguments: [ '@service_container', '@rapsys_pack.map_util', '@rapsys_pack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsys_pack.path%' ]
71 tags: [ 'controller.service_arguments' ]
72 Rapsys\PackBundle\Form\CaptchaType:
73 arguments: [ '@rapsys_pack.image_util', '@rapsys_pack.slugger_util', '@translator' ]
74 tags: [ 'form.type' ]