2018-11-12 22:22:42 +03:00
|
|
|
<?php
|
2020-01-01 23:15:23 +03:00
|
|
|
|
2018-11-12 22:22:42 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-02-03 13:01:38 +03:00
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
use Psr\Log;
|
|
|
|
|
2018-11-12 22:22:42 +03:00
|
|
|
return [
|
|
|
|
|
|
|
|
'dependencies' => [
|
|
|
|
'lazy_services' => [
|
|
|
|
'write_proxy_files' => false,
|
|
|
|
],
|
2019-02-03 13:01:38 +03:00
|
|
|
|
|
|
|
'initializers' => [
|
2020-01-01 23:15:23 +03:00
|
|
|
function (ContainerInterface $container, $instance): void {
|
2019-02-03 13:01:38 +03:00
|
|
|
if ($instance instanceof Log\LoggerAwareInterface) {
|
|
|
|
$instance->setLogger($container->get(Log\LoggerInterface::class));
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
2018-11-12 22:22:42 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|