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
7 # default configuration for services in *this* file
9 autowire: true # Automatically injects dependencies in your services.
10 autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
11 public: false # Allows optimizing the container by removing unused services; this also means
12 # fetching services directly from the container via $container->get() won't work.
13 # The best practice is to be explicit about your dependencies anyway.
15 # makes classes in src/ available to be used as services
16 # this creates a service per class whose id is the fully-qualified class name
19 exclude: '../src/{Entity,Migrations,Tests,Kernel.php}'
21 # controllers are imported separately to make sure services can be injected
22 # as action arguments even if you don't extend any base controller class
24 resource: '../src/Controller'
25 tags: ['controller.service_arguments']
27 # add more service definitions when explicit configuration is needed
28 # please note that last definitions always *replace* previous ones