mytube-backend/src/HandlingDomain/VideoList/config/service_manager.php
2024-02-23 19:12:22 +01:00

22 lines
800 B
PHP

<?php
use MyTube\Handling\VideoList\Handler\Command\Upload\UploadCommandBuilder;
use MyTube\Handling\VideoList\Handler\Command\Upload\UploadCommandHandler;
use MyTube\Handling\VideoList\Handler\Query\ReadList\ReadListQueryBuilder;
use MyTube\Handling\VideoList\Handler\Query\ReadList\ReadListQueryHandler;
use Reinfi\DependencyInjection\Factory\AutoWiringFactory;
use Reinfi\DependencyInjection\Factory\InjectionFactory;
return [
'factories' => [
/// CQRS
// Read List
ReadListQueryBuilder::class => AutoWiringFactory::class,
ReadListQueryHandler::class => InjectionFactory::class,
// Upload
UploadCommandBuilder::class => AutoWiringFactory::class,
UploadCommandHandler::class => AutoWiringFactory::class,
],
];