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