- PermissionRepositoryInterface avec findByCode et findAllCodes (pour le sync command et le futur PermissionVoter) - RoleRepositoryInterface avec findByCode - Implementations Doctrine alignees sur DoctrineUserRepository - Alias DI dans config/services.yaml - Rebranchement de repositoryClass sur les entites Permission et Role Ticket #343 - 2/7 : couche persistence RBAC. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
1.0 KiB
YAML
27 lines
1.0 KiB
YAML
# 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
|