Commit | Line | Data |
---|---|---|
dec6d031 JB |
1 | # Put parameters here that don't need to change on each machine where the app is deployed |
2 | # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration | |
3 | parameters: | |
4 | ||
5 | services: | |
6 | # default configuration for services in *this* file | |
7 | _defaults: | |
8 | autowire: true # Automatically injects dependencies in your services. | |
9 | autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. | |
10 | public: false # Allows optimizing the container by removing unused services; this also means | |
11 | # fetching services directly from the container via $container->get() won't work. | |
12 | # The best practice is to be explicit about your dependencies anyway. | |
13 | ||
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: '../src/{Entity,Migrations,Tests,Kernel.php}' | |
19 | ||
20 | # controllers are imported separately to make sure services can be injected | |
21 | # as action arguments even if you don't extend any base controller class | |
22 | App\Controller\: | |
23 | resource: '../src/Controller' | |
24 | tags: ['controller.service_arguments'] | |
25 | ||
26 | # add more service definitions when explicit configuration is needed | |
27 | # please note that last definitions always *replace* previous ones |