Skip to content

Commit b786e6c

Browse files
committed
allow disable error preview console command
1 parent 401d592 commit b786e6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Module.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace ErrorHeroModule;
66

77
use Doctrine\ORM\EntityManager;
8+
use ErrorHeroModule\Command\Preview\ErrorPreviewConsoleCommand;
89
use ErrorHeroModule\Controller\ErrorPreviewConsoleController;
910
use ErrorHeroModule\Controller\ErrorPreviewController;
1011
use ErrorHeroModule\Transformer\Doctrine;
@@ -54,9 +55,9 @@ public function errorPreviewPageHandler(ModuleEvent $moduleEvent): void
5455

5556
unset(
5657
$configuration['controllers']['factories'][ErrorPreviewController::class],
57-
$configuration['controllers']['factories'][ErrorPreviewConsoleController::class],
58+
$configuration['service_manager']['factories'][ErrorPreviewConsoleCommand::class],
5859
$configuration['router']['routes']['error-preview'],
59-
$configuration['console']['router']['routes']['error-preview-console']
60+
$configuration['laminas-cli']['commands']['errorheromodule:preview']
6061
);
6162

6263
$configMerger->setMergedConfig($configuration);

0 commit comments

Comments
 (0)