22 lines
800 B
PHP
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,
|
|
],
|
|
];
|