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