Cambio en queue para que no quede pegado esperando respuesta en cli.
Chequeo de servicios externos para agregar elementos pendientes.
This commit is contained in:
@ -135,7 +135,8 @@ return [
|
||||
Incoviba\Service\Venta\MediosPago\Toku\Subscription::class => function(ContainerInterface $container) {
|
||||
$service = new Incoviba\Service\Venta\MediosPago\Toku\Subscription(
|
||||
$container->get('TokuClient'),
|
||||
$container->get(Incoviba\Repository\Venta\MediosPago\Toku\Subscription::class)
|
||||
$container->get(Incoviba\Repository\Venta\MediosPago\Toku\Subscription::class),
|
||||
$container->get(Incoviba\Service\Venta::class)
|
||||
);
|
||||
$service->setLogger($container->get(Psr\Log\LoggerInterface::class));
|
||||
return $service;
|
||||
@ -165,7 +166,8 @@ return [
|
||||
$container->get(Incoviba\Service\Worker\Request::class)
|
||||
))
|
||||
->register('request', $container->get(Incoviba\Service\Worker\Request::class))
|
||||
->register('dummy', $container->get(Incoviba\Service\Worker\Dummy::class));
|
||||
->register('dummy', $container->get(Incoviba\Service\Worker\Dummy::class))
|
||||
->register('checkExternal', $container->get(Incoviba\Service\Worker\CheckExternal::class));
|
||||
},
|
||||
Incoviba\Service\Worker\Request::class => function(ContainerInterface $container) {
|
||||
$apiKey = md5($container->get('API_KEY'));
|
||||
@ -184,5 +186,18 @@ return [
|
||||
]
|
||||
])
|
||||
);
|
||||
},
|
||||
Incoviba\Service\Worker\CheckExternal::class => function(ContainerInterface $container) {
|
||||
return new Incoviba\Service\Worker\CheckExternal(
|
||||
$container->get(Psr\Log\LoggerInterface::class),
|
||||
$container
|
||||
);
|
||||
},
|
||||
Incoviba\Service\External::class => function(ContainerInterface $container) {
|
||||
return (new Incoviba\Service\External(
|
||||
$container->get(Psr\Log\LoggerInterface::class),
|
||||
$container->get(Incoviba\Service\Queue::class)
|
||||
))
|
||||
->register($container->get(Incoviba\Service\Venta\MediosPago\Toku::class));
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user