services.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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/configuration.html#application-related-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: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php,Routes}'
  16. # controllers are imported separately to make sure services can be injected
  17. # as action arguments even if you don't extend any base controller class
  18. App\Controller\:
  19. resource: '../src/Controller'
  20. tags: ['controller.service_arguments']
  21. App\Core\RouteLoader:
  22. tags: ['routing.loader']
  23. # Wrapper arround Doctrine's StaticPHP metadata driver
  24. app.core.schemadef_driver:
  25. class: App\Core\SchemaDefDriver
  26. arguments:
  27. - '%kernel.project_dir%/src/Entity'