develop (#45)
Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #45
This commit is contained in:
31
cli/setup/setups/commands.php
Normal file
31
cli/setup/setups/commands.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?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')
|
||||
);
|
||||
},
|
||||
Incoviba\Command\BaseLoop::class => function(ContainerInterface $container) {
|
||||
return new Incoviba\Command\BaseLoop(
|
||||
$container->get('LoopLogger'),
|
||||
$container->get(Incoviba\Service\Schedule::class),
|
||||
$container->get(DateTimeZone::class),
|
||||
$container->get('loopFrequency'),
|
||||
);
|
||||
},
|
||||
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)
|
||||
);
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user