LoggerEnabled Fix
This commit is contained in:
@ -6,13 +6,12 @@ use Psr\Log\LoggerInterface;
|
|||||||
|
|
||||||
abstract class LoggerEnabled implements LoggerAwareInterface
|
abstract class LoggerEnabled implements LoggerAwareInterface
|
||||||
{
|
{
|
||||||
protected LoggerInterface $logger;
|
public LoggerInterface $logger {
|
||||||
public function setLogger(LoggerInterface $logger): void
|
get {
|
||||||
{
|
return $this->logger;
|
||||||
$this->logger = $logger;
|
}
|
||||||
}
|
set(LoggerInterface $value) {
|
||||||
public function getLogger(): LoggerInterface
|
$this->logger = $value;
|
||||||
{
|
}
|
||||||
return $this->logger;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ return [
|
|||||||
$container->get('TokuClient'),
|
$container->get('TokuClient'),
|
||||||
$container->get(Incoviba\Repository\Venta\MediosPago\Toku\Customer::class)
|
$container->get(Incoviba\Repository\Venta\MediosPago\Toku\Customer::class)
|
||||||
);
|
);
|
||||||
$service->setLogger($container->get('externalLogger'));
|
$service->logger = $container->get('externalLogger');
|
||||||
return $service;
|
return $service;
|
||||||
},
|
},
|
||||||
Incoviba\Service\Venta\MediosPago\Toku\Subscription::class => function(ContainerInterface $container) {
|
Incoviba\Service\Venta\MediosPago\Toku\Subscription::class => function(ContainerInterface $container) {
|
||||||
@ -138,7 +138,7 @@ return [
|
|||||||
$container->get(Incoviba\Repository\Venta\MediosPago\Toku\Subscription::class),
|
$container->get(Incoviba\Repository\Venta\MediosPago\Toku\Subscription::class),
|
||||||
$container->get(Incoviba\Service\Venta::class)
|
$container->get(Incoviba\Service\Venta::class)
|
||||||
);
|
);
|
||||||
$service->setLogger($container->get('externalLogger'));
|
$service->logger = $container->get('externalLogger');
|
||||||
return $service;
|
return $service;
|
||||||
},
|
},
|
||||||
Incoviba\Service\Venta\MediosPago\Toku\Invoice::class => function(ContainerInterface $container) {
|
Incoviba\Service\Venta\MediosPago\Toku\Invoice::class => function(ContainerInterface $container) {
|
||||||
@ -148,7 +148,7 @@ return [
|
|||||||
$container->get(Incoviba\Service\Venta\Pago::class),
|
$container->get(Incoviba\Service\Venta\Pago::class),
|
||||||
$container->get(Incoviba\Service\UF::class)
|
$container->get(Incoviba\Service\UF::class)
|
||||||
);
|
);
|
||||||
$service->setLogger($container->get('externalLogger'));
|
$service->logger = $container->get('externalLogger');
|
||||||
$service->setAltLogger($container->get('jsonLogger'));
|
$service->setAltLogger($container->get('jsonLogger'));
|
||||||
return $service;
|
return $service;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user