Skip to content

Commit 21dacb9

Browse files
committed
Revert "remove auto create logger via LoggerAbstractServiceFactory, as use compat Logger for php 8.4"
This reverts commit 714999a.
1 parent 3422d15 commit 21dacb9

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

config/mezzio-error-hero-module.local.php.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ json
152152
],
153153

154154
'dependencies' => [
155+
'abstract_factories' => [
156+
LoggerAbstractServiceFactory::class,
157+
],
155158
'factories' => [
156159
Mezzio::class => MezzioFactory::class,
157160
ErrorPreviewAction::class => InvokableFactory::class,

config/module.config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use ErrorHeroModule\Command\BaseLoggingCommandInitializer;
66
use ErrorHeroModule\Command\Preview\ErrorPreviewConsoleCommand;
77
use ErrorHeroModule\Controller\ErrorPreviewController;
8+
use Laminas\Log\LoggerAbstractServiceFactory;
89
use ErrorHeroModule\Listener\Mvc;
910
use ErrorHeroModule\Listener\MvcFactory;
1011
use ErrorHeroModule\Handler\Logging;
@@ -37,6 +38,9 @@
3738
],
3839

3940
'service_manager' => [
41+
'abstract_factories' => [
42+
LoggerAbstractServiceFactory::class,
43+
],
4044
'factories' => [
4145
Mvc::class => MvcFactory::class,
4246
Logging::class => LoggingFactory::class,

spec/Fixture/config/module.local.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use ErrorHeroModule\Handler\LoggingFactory;
88
use ErrorHeroModule\Listener\Mvc;
99
use ErrorHeroModule\Listener\MvcFactory;
10+
use Laminas\Log\LoggerAbstractServiceFactory;
1011
use Laminas\ServiceManager\Factory\InvokableFactory;
1112

1213
return [
@@ -33,6 +34,9 @@
3334
],
3435

3536
'service_manager' => [
37+
'abstract_factories' => [
38+
LoggerAbstractServiceFactory::class,
39+
],
3640
'factories' => [
3741
Mvc::class => MvcFactory::class,
3842
Logging::class => LoggingFactory::class,

0 commit comments

Comments
 (0)