2024-08-27 14:50:45 -04:00
|
|
|
<?php
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
|
|
|
|
return [
|
|
|
|
Symfony\Component\Console\CommandLoader\CommandLoaderInterface::class => function(ContainerInterface $container) {
|
|
|
|
return new Symfony\Component\Console\CommandLoader\ContainerCommandLoader($container, $container->get('commands'));
|
|
|
|
},
|
|
|
|
Incoviba\Command\Full::class => function(ContainerInterface $container) {
|
|
|
|
return new Incoviba\Command\Full(
|
|
|
|
$container->get(Psr\Http\Client\ClientInterface::class),
|
|
|
|
$container->get(Psr\Log\LoggerInterface::class),
|
|
|
|
$container->get('commands')
|
|
|
|
);
|
2025-05-16 12:54:52 -04:00
|
|
|
},
|
|
|
|
Incoviba\Command\BaseLoop::class => function(ContainerInterface $container) {
|
|
|
|
return new Incoviba\Command\BaseLoop(
|
|
|
|
$container->get('LoopLogger'),
|
2025-05-27 16:19:47 -04:00
|
|
|
$container->get(Incoviba\Service\Schedule::class),
|
|
|
|
$container->get(DateTimeZone::class),
|
2025-06-03 13:01:40 -04:00
|
|
|
$container->get('loopFrequency'),
|
2025-05-16 12:54:52 -04:00
|
|
|
);
|
2025-06-30 15:52:28 -04:00
|
|
|
},
|
|
|
|
Incoviba\Command\Queue::class => function(ContainerInterface $container) {
|
|
|
|
return new Incoviba\Command\Queue(
|
|
|
|
$container->get(Psr\Http\Client\ClientInterface::class),
|
|
|
|
$container->get('QueueLogger'),
|
|
|
|
$container->get(Incoviba\Service\Job::class),
|
|
|
|
$container->get(DateTimeZone::class)
|
|
|
|
);
|
2024-08-27 14:50:45 -04:00
|
|
|
}
|
|
|
|
];
|