shlink/config/autoload/dependencies.local.php.dist

25 lines
513 B
Text
Raw Normal View History

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