]> Raphaƫl G. Git Repositories - packbundle/blob - config/packages/rapsyspack.yaml
fb847585067871a9f076cc00aa4b264d27fdf73b
[packbundle] / config / packages / rapsyspack.yaml
1 # Parameters configuration
2 parameters:
3 # User agent
4 env(RAPSYSPACK_AGENT): "rapsyspack/Ch4ng3m3!"
5 # Shuffled printable character range
6 env(RAPSYSPACK_RANGE): 'Ch4ng3m3!'
7 # Redirect
8 env(RAPSYSPACK_REDIRECT): 20
9 # Scheme
10 env(RAPSYSPACK_SCHEME): "https"
11 # Timeout
12 env(RAPSYSPACK_TIMEOUT): 60
13
14 # Services configuration
15 services:
16 # Replace assets.context definition
17 assets.context:
18 class: 'Rapsys\PackBundle\Context\RequestStackContext'
19 arguments: [ '@request_stack', '%asset.request_context.base_path%', '%asset.request_context.secure%' ]
20 # Replace assets.packages definition
21 assets.packages:
22 class: 'Symfony\Component\Asset\Packages'
23 arguments: [ '@rapsyspack.path_package' ]
24 # Register facebook util service
25 rapsyspack.facebook_util:
26 class: 'Rapsys\PackBundle\Util\FacebookUtil'
27 arguments: [ '@router', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
28 public: true
29 # Register file util service
30 rapsyspack.file_util:
31 class: 'Rapsys\PackBundle\Util\FileUtil'
32 arguments: [ '@rapsyspack.image_util', '@rapsyspack.intl_util', '@translator' ]
33 public: true
34 # Register image util service
35 rapsyspack.image_util:
36 class: 'Rapsys\PackBundle\Util\ImageUtil'
37 arguments: [ '@router', '@rapsyspack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
38 public: true
39 # Register intl util service
40 rapsyspack.intl_util:
41 class: 'Rapsys\PackBundle\Util\IntlUtil'
42 public: true
43 # Register map util service
44 rapsyspack.map_util:
45 class: 'Rapsys\PackBundle\Util\MapUtil'
46 arguments: [ '@router', '@rapsyspack.slugger_util' ]
47 public: true
48 # Register twig pack extension
49 rapsyspack.pack_extension:
50 class: 'Rapsys\PackBundle\Extension\PackExtension'
51 arguments: [ '@rapsyspack.intl_util', '@file_locator', '@rapsyspack.path_package', '@rapsyspack.slugger_util', '%rapsyspack%' ]
52 tags: [ 'twig.extension' ]
53 # Register assets pack package
54 rapsyspack.path_package:
55 class: 'Rapsys\PackBundle\Package\PathPackage'
56 arguments: [ '/', '@assets.empty_version_strategy', '@assets.context' ]
57 public: true
58 # Register slugger util service
59 rapsyspack.slugger_util:
60 class: 'Rapsys\PackBundle\Util\SluggerUtil'
61 arguments: [ '%kernel.secret%' ]
62 public: true
63 # Register range command
64 Rapsys\PackBundle\Command\RangeCommand:
65 arguments: [ '%kernel.project_dir%/.env.local' ]
66 tags: [ 'console.command' ]
67 # Register image controller
68 Rapsys\PackBundle\Controller\ImageController:
69 arguments: [ '@service_container', '@rapsyspack.image_util', '@rapsyspack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
70 tags: [ 'controller.service_arguments' ]
71 # Register map controller
72 Rapsys\PackBundle\Controller\MapController:
73 arguments: [ '@service_container', '@rapsyspack.map_util', '@rapsyspack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
74 tags: [ 'controller.service_arguments' ]
75 # Register captcha form type
76 Rapsys\PackBundle\Form\CaptchaType:
77 arguments: [ '@rapsyspack.image_util', '@rapsyspack.slugger_util', '@translator' ]
78 tags: [ 'form.type' ]
79 # Register facebook event subscriber
80 Rapsys\PackBundle\Subscriber\FacebookSubscriber:
81 arguments: [ '@router', [] ]
82 tags: [ 'kernel.event_subscriber' ]
83 # Register facebook util class alias
84 Rapsys\PackBundle\Util\FacebookUtil:
85 alias: 'rapsyspack.facebook_util'
86 # Register file util class alias
87 Rapsys\PackBundle\Util\FileUtil:
88 alias: 'rapsyspack.file_util'
89 # Register image util class alias
90 Rapsys\PackBundle\Util\ImageUtil:
91 alias: 'rapsyspack.image_util'
92 # Register intl util class alias
93 Rapsys\PackBundle\Util\IntlUtil:
94 alias: 'rapsyspack.intl_util'
95 # Register map util class alias
96 Rapsys\PackBundle\Util\MapUtil:
97 alias: 'rapsyspack.map_util'
98 # Register slugger util class alias
99 Rapsys\PackBundle\Util\SluggerUtil:
100 alias: 'rapsyspack.slugger_util'