# yaml-language-server: $schema=../vendor/symfony/dependency-injection/Loader/schema/services.schema.json

parameters:

imports:
    - { resource: version.yaml }

services:
    # default configuration for services in *this* file
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.

    # makes classes in src/ available to be used as services
    # this creates a service per class whose id is the fully-qualified class name
    App\:
        resource: '../src/'

    App\Module\Core\Domain\Repository\PermissionRepositoryInterface:
        alias: App\Module\Core\Infrastructure\Doctrine\DoctrinePermissionRepository

    App\Module\Core\Domain\Repository\RoleRepositoryInterface:
        alias: App\Module\Core\Infrastructure\Doctrine\DoctrineRoleRepository

    App\Module\Core\Domain\Repository\UserRepositoryInterface:
        alias: App\Module\Core\Infrastructure\Doctrine\DoctrineUserRepository

    App\Module\Sites\Domain\Repository\SiteRepositoryInterface:
        alias: App\Module\Sites\Infrastructure\Doctrine\DoctrineSiteRepository

    App\Shared\Domain\Contract\SiteProviderInterface:
        alias: App\Module\Sites\Infrastructure\Doctrine\DoctrineSiteRepository

    App\Module\Sites\Application\Service\CurrentSiteProviderInterface:
        alias: App\Module\Sites\Application\Service\CurrentSiteProvider
