services.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # This file is the entry point to configure your own services.
  2. # Files in the packages/ subdirectory configure your dependencies.
  3. parameters:
  4. services:
  5. # default configuration for services in *this* file
  6. _defaults:
  7. autowire: true # Automatically injects dependencies in your services.
  8. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  9. # makes classes in src/ available to be used as services
  10. # this creates a service per class whose id is the fully-qualified class name
  11. App\:
  12. resource: '../src/*'
  13. exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php,Routes}'
  14. # controllers are imported separately to make sure services can be injected
  15. # as action arguments even if you don't extend any base controller class
  16. App\Controller\:
  17. resource: '../src/Controller'
  18. tags: ['controller.service_arguments']
  19. App\Core\Router\RouteLoader:
  20. tags: ['routing.loader']
  21. # Wrapper arround Doctrine's StaticPHP metadata driver
  22. app.core.schemadef_driver:
  23. class: App\Core\DB\SchemaDefDriver
  24. arguments:
  25. - '%kernel.project_dir%/src/Entity'
  26. App\Core\I18n\TransExtractor:
  27. tags:
  28. - { name: 'translation.extractor', alias: social }
  29. App\Core\Queue\MessageHandler:
  30. tags: ['messenger.message_handler']
  31. Symfony\Bridge\Doctrine\Security\RememberMe\DoctrineTokenProvider: ~
  32. Plugin\:
  33. resource: '../plugins/*'
  34. exclude: '../plugins/*/{scripts,classes,lib,actions,locale,doc}'
  35. tags: ['controller.service_arguments']
  36. Component\:
  37. resource: '../components/*'
  38. exclude: '../components/*/{scripts,classes,lib,actions,locale,doc}'
  39. tags: ['controller.service_arguments']