You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 regels
1.3 KiB

  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. services:
  7. # default configuration for services in *this* file
  8. _defaults:
  9. autowire: true # Automatically injects dependencies in your services.
  10. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  11. # makes classes in src/ available to be used as services
  12. # this creates a service per class whose id is the fully-qualified class name
  13. App\:
  14. resource: '../src/'
  15. exclude:
  16. - '../src/DependencyInjection/'
  17. - '../src/Entity/'
  18. - '../src/Kernel.php'
  19. # add more service definitions when explicit configuration is needed
  20. # please note that last definitions always *replace* previous ones
  21. App\Command\:
  22. resource: '../src/Command/'
  23. autowire: true
  24. autoconfigure: true
  25. arguments: ['@doctrine.orm.entity_manager', '@service_container', '@mailer']
  26. tags:
  27. - { name: 'console.command' }