]> Raphaƫl G. Git Repositories - packbundle/blob - Resources/config/packages/rapsyspack.yaml
f57cf7445cbfdbec9510ba9fce7e3abdd2b97ca6
[packbundle] / Resources / 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 image util service
30 rapsyspack.image_util:
31 class: 'Rapsys\PackBundle\Util\ImageUtil'
32 arguments: [ '@router', '@rapsyspack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
33 public: true
34 # Register intl util service
35 rapsyspack.intl_util:
36 class: 'Rapsys\PackBundle\Util\IntlUtil'
37 public: true
38 # Register map util service
39 rapsyspack.map_util:
40 class: 'Rapsys\PackBundle\Util\MapUtil'
41 arguments: [ '@router', '@rapsyspack.slugger_util' ]
42 public: true
43 # Register twig pack extension
44 rapsyspack.pack_extension:
45 class: 'Rapsys\PackBundle\Extension\PackExtension'
46 arguments: [ '@rapsyspack.intl_util', '@file_locator', '@rapsyspack.path_package', '@rapsyspack.slugger_util', '%rapsyspack%' ]
47 tags: [ 'twig.extension' ]
48 # Register assets pack package
49 rapsyspack.path_package:
50 class: 'Rapsys\PackBundle\Package\PathPackage'
51 arguments: [ '/', '@assets.empty_version_strategy', '@assets.context' ]
52 public: true
53 # Register slugger util service
54 rapsyspack.slugger_util:
55 class: 'Rapsys\PackBundle\Util\SluggerUtil'
56 arguments: [ '%kernel.secret%' ]
57 public: true
58 # Register range command
59 Rapsys\PackBundle\Command\RangeCommand:
60 arguments: [ '%kernel.project_dir%/.env.local' ]
61 tags: [ 'console.command' ]
62 # Register image controller
63 Rapsys\PackBundle\Controller\ImageController:
64 arguments: [ '@service_container', '@rapsyspack.image_util', '@rapsyspack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
65 tags: [ 'controller.service_arguments' ]
66 # Register map controller
67 Rapsys\PackBundle\Controller\MapController:
68 arguments: [ '@service_container', '@rapsyspack.map_util', '@rapsyspack.slugger_util', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
69 tags: [ 'controller.service_arguments' ]
70 # Register captcha form type
71 Rapsys\PackBundle\Form\CaptchaType:
72 arguments: [ '@rapsyspack.image_util', '@rapsyspack.slugger_util', '@translator' ]
73 tags: [ 'form.type' ]
74 # Register facebook event subscriber
75 Rapsys\PackBundle\Subscriber\FacebookSubscriber:
76 arguments: [ '@router', [] ]
77 tags: [ 'kernel.event_subscriber' ]
78 # Register facebook util class alias
79 Rapsys\PackBundle\Util\FacebookUtil:
80 alias: 'rapsyspack.facebook_util'
81 # Register image util class alias
82 Rapsys\PackBundle\Util\ImageUtil:
83 alias: 'rapsyspack.image_util'
84 # Register intl util class alias
85 Rapsys\PackBundle\Util\IntlUtil:
86 alias: 'rapsyspack.intl_util'
87 # Register map util class alias
88 Rapsys\PackBundle\Util\MapUtil:
89 alias: 'rapsyspack.map_util'
90 # Register slugger util class alias
91 Rapsys\PackBundle\Util\SluggerUtil:
92 alias: 'rapsyspack.slugger_util'