Skip to content

Commit 4e7476e

Browse files
committed
fix laminas-cli service registration
1 parent 2f6b476 commit 4e7476e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use ErrorHeroModule\ErrorHeroModule\Middleware\Routed\Preview\ErrorPreviewAction
1212
use ErrorHeroModule\Handler\Logging;
1313
use ErrorHeroModule\Handler\LoggingFactory;
1414
use ErrorHeroModule\Command\BaseLoggingCommand;
15+
use ErrorHeroModule\Command\Preview\ErrorPreviewConsoleCommand;
1516
use Laminas\Db\Adapter\AdapterInterface;
1617
use Laminas\Log;
1718
use Laminas\Log\LoggerAbstractServiceFactory;
@@ -159,12 +160,20 @@ json
159160
ErrorPreviewAction::class => InvokableFactory::class,
160161

161162
Logging::class => LoggingFactory::class,
163+
164+
ErrorPreviewConsoleCommand::class => InvokableFactory::class,
162165
],
163166
'initializers' => [
164167
BaseLoggingCommandInitializer::class,
165168
],
166169
],
167170

171+
'laminas-cli' => [
172+
'commands' => [
173+
'errorheromodule:preview' => ErrorPreviewConsoleCommand::class,
174+
],
175+
],
176+
168177
'templates' =>[
169178
'paths' => [
170179
'error-hero-module' => [

0 commit comments

Comments
 (0)