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 facebook util service
25 rapsyspack.facebook_util:
26 class: 'Rapsys\PackBundle\Util\FacebookUtil'
27 arguments: [ '@router', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
29 # Register file util service
31 class: 'Rapsys\PackBundle\Util\FileUtil'
32 arguments: [ '@rapsyspack.image_util', '@rapsyspack.intl_util', '@translator' ]
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%' ]
39 # Register intl util service
41 class: 'Rapsys\PackBundle\Util\IntlUtil'
43 # Register map util service
45 class: 'Rapsys\PackBundle\Util\MapUtil'
46 arguments: [ '@router', '@rapsyspack.slugger_util' ]
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' ]
58 # Register slugger util service
59 rapsyspack.slugger_util:
60 class: 'Rapsys\PackBundle\Util\SluggerUtil'
61 arguments: [ '%kernel.secret%' ]
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' ]
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'