services.yaml 1018 B

123456789101112131415161718192021222324252627
  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. app.mailer_from: '%env(MAILER_FROM)%'
  7. app.ga_view_id: '%env(GA_VIEW_ID)%'
  8. app.base_url: '%env(APP_BASE_URL)%'
  9. app.yandex_schedule_api_key: '%env(YANDEX_SCHEDULE_API_KEY)%'
  10. services:
  11. _defaults:
  12. autowire: true
  13. autoconfigure: true
  14. App\:
  15. resource: '../src/*'
  16. exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
  17. App\Components\Balticrest\EventListener\ExceptionListener:
  18. tags:
  19. - { name: kernel.event_listener, event: kernel.exception }
  20. imports:
  21. - { resource: '../src/Components/Admin/config/services.yaml'}
  22. - { resource: '../src/Components/Balticrest/config/services.yaml'}