A gateway/firewall task to be able to talk someone about the real job
Fibinger Ádám
2021-10-22 fd7692eae00cbb0db3e6b732f68357e3c64a8a8b
commit | author | age
15b0f1 1 # This file is the entry point to configure your own services.
2 # Files in the packages/ subdirectory configure your dependencies.
3
4 # Put parameters here that don't need to change on each machine where the app is deployed
5 # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
6 parameters:
7
8 services:
fd7692 9   # default configuration for services in *this* file
10   _defaults:
11     autowire: true      # Automatically injects dependencies in your services.
12     autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
15b0f1 13
fd7692 14   # makes classes in src/ available to be used as services
15   # this creates a service per class whose id is the fully-qualified class name
16   App\:
17     resource: '../src/'
18     exclude:
19       - '../src/DependencyInjection/'
20       - '../src/Entity/'
21       - '../src/Kernel.php'
22       - '../src/Tests/'
15b0f1 23
fd7692 24   # add more service definitions when explicit configuration is needed
25   # please note that last definitions always *replace* previous ones
26   'App\EventListener\DeserializeListener':
27     tags:
28       - { name: 'kernel.event_listener', event: 'kernel.request', method: 'onKernelRequest', priority: 2 }
29     # Autoconfiguration must be disabled to set a custom priority
30     autoconfigure: false
31     decorates: 'api_platform.listener.request.deserialize'
32     arguments:
33       $decorated: '@App\EventListener\DeserializeListener.inner'
34
35   'App\DataTransformer\CreateSecretTransformer': ~
36     # Uncomment only if autoconfiguration is disabled
37   #tags: [ 'api_platform.data_transformer' ]
38   App\Filter\PublicSecretQueryExtension:
39     tags:
40       - { name: api_platform.doctrine.orm.query_extension.collection }