]> Raphaƫl G. Git Repositories - blog/blob - config/services.yaml
Import config, packages and routes yaml files
[blog] / config / services.yaml
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:
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.
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:
19 - '../src/DependencyInjection/'
20 - '../src/Entity/'
21 - '../src/Kernel.php'
22
23 # add more service definitions when explicit configuration is needed
24 # please note that last definitions always *replace* previous ones