nhl-schedule/config/services.yaml

31 lines
1.3 KiB
YAML

# yaml-language-server: $schema=../vendor/symfony/dependency-injection/Loader/schema/services.schema.json
# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.
# See also https://symfony.com/doc/current/service_container/import.html
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
app.sport_radar_apikey: '%env(SPORT_RADAR_APIKEY)%'
services:
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
App\:
resource: '../src/'
App\Application\CommandBus\UseCaseCommandBus:
arguments:
$handlers: !tagged_iterator 'app.usecase'
App\Application\UseCase\:
resource: '../src/Application/UseCase/**'
tags: ['app.usecase']
exclude:
- '../src/Application/UseCase/**/*Request.php'
App\Application\LolEsportOfficialAPI\LolEsportOfficialAPIEngine: '@App\Infrastructure\LolEsportOfficialAPI\HTTPLolEsportOfficialAPI'
App\Application\SportRadar\SportRadarEngine: '@App\Infrastructure\SportRadar\HTTPSportRadarEngine'