1 # Parameters configuration
4 env(RAPSYSPACK_AGENT): "rapsyspack/Ch4ng3m3!"
5 # Shuffled printable character range
6 env(RAPSYSPACK_RANGE): 'Ch4ng3m3!'
8 env(RAPSYSPACK_REDIRECT): 20
10 env(RAPSYSPACK_SCHEME): "https"
12 env(RAPSYSPACK_TIMEOUT): 60
14 # Services configuration
16 # Replace assets.context definition
18 class: 'Rapsys\PackBundle\Context\RequestStackContext'
19 arguments: [ '@request_stack', '%asset.request_context.base_path%', '%asset.request_context.secure%' ]
20 # Replace assets.packages definition
22 class: 'Symfony\Component\Asset\Packages'
23 arguments: [ '@rapsyspack.path_package' ]
24 # Register file util service
26 class: 'Rapsys\PackBundle\Util\FileUtil'
27 arguments: [ '@rapsyspack.image_util', '@rapsyspack.intl_util', '@translator' ]
29 # Register image util service
30 rapsyspack.image_util:
31 class: 'Rapsys\PackBundle\Util\ImageUtil'
32 arguments: [ '@service_container', '@router', '@rapsyspack.slugger_util' ]
34 # Register intl util service
36 class: 'Rapsys\PackBundle\Util\IntlUtil'
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' ]
48 # Register slugger util service
49 rapsyspack.slugger_util:
50 class: 'Rapsys\PackBundle\Util\SluggerUtil'
51 arguments: [ '%kernel.secret%' ]
53 # Register range command
54 Rapsys\PackBundle\Command\RangeCommand:
55 arguments: [ '%kernel.project_dir%/.env.local' ]
56 tags: [ 'console.command' ]
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' ]
65 # Register contact form
66 Rapsys\PackBundle\Form\ContactType:
67 arguments: [ '@rapsyspack.image_util', '@rapsyspack.slugger_util', '@translator' ]
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'