services.yaml 1.1 KB

12345678910111213141516171819202122232425
  1. # This file is the entry point to configure your own services.
  2. # Files in the packages/ subdirectory configure your dependencies.
  3. # Put parameters here that don't need to change on each machine where the app is deployed
  4. # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
  5. parameters:
  6. images_directory: '%kernel.project_dir%/public/uploads/images'
  7. title: '%env(TITLE)%'
  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. # makes classes in src/ available to be used as services
  14. # this creates a service per class whose id is the fully-qualified class name
  15. App\:
  16. resource: '../src/'
  17. exclude:
  18. - '../src/DependencyInjection/'
  19. - '../src/Entity/'
  20. - '../src/Kernel.php'
  21. # add more service definitions when explicit configuration is needed
  22. # please note that last definitions always *replace* previous ones