e88bb059e6
- WeighbridgeReaderInterface (contrat) + RandomWeighbridgeReader (stub,
poids aléatoire ∈ [10000,50000] kg, RG-5.06) + WeighbridgeUnavailableException
- DsdAllocator : compteur DSD par site (weighbridge_dsd_counter) incrémenté
sous verrou ligne SELECT ... FOR UPDATE (RG-5.04, § 2.7)
- endpoint POST /api/weighbridge_readings : ressource virtuelle
WeighbridgeReadingResource + WeighbridgeReadingProcessor (pas de controller)
- AUTO -> {weight, dsd, mode} ; MANUAL -> {weight, dsd, manualNumber, mode}
- WeighbridgeUnavailableException -> HTTP 503 explicite (RG-5.06)
- site courant via CurrentSiteProviderInterface (contrat Sites)
- is_granted('logistique.weighing_tickets.manage')
- dsd renvoyé prévisionnel : attribution autoritaire refaite à la création
du ticket (ERP-185)
- tests : WeighbridgeReaderStubTest, DsdAllocatorTest, processor (503/400),
WeighbridgeReadingApiTest (RBAC + AUTO/MANUAL + 422)
43 lines
1.8 KiB
YAML
43 lines
1.8 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
|
|
|
|
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
|
|
|
|
# M5 Logistique — pesee pont bascule (ERP-184)
|
|
App\Module\Logistique\Domain\Contract\WeighbridgeReaderInterface:
|
|
alias: App\Module\Logistique\Infrastructure\Weighbridge\RandomWeighbridgeReader
|
|
|
|
App\Module\Logistique\Application\Service\DsdAllocatorInterface:
|
|
alias: App\Module\Logistique\Infrastructure\Service\DsdAllocator
|