Skip to content

Commit aee7f1a

Browse files
committed
fix
1 parent 3e27f94 commit aee7f1a

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

src/Compat/LoggerAbstractServiceFactory.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44

55
namespace ErrorHeroModule\Compat;
66

7-
class LoggerAbstractServiceFactory extends LoggerServiceFactory
7+
use Psr\Container\ContainerInterface;
8+
9+
class LoggerAbstractServiceFactory extends \Laminas\Log\LoggerAbstractServiceFactory
810
{
11+
/**
12+
* {@inheritdoc}
13+
*/
14+
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
15+
{
16+
$config = $this->getConfig($container);
17+
$config = $config[$requestedName];
18+
19+
$this->processConfig($config, $container);
20+
21+
return new Logger($config);
22+
}
923
}

src/Compat/LoggerServiceFactory.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)