Skip to content

Commit 5694c4e

Browse files
committed
Set name in original command
This fixes un issue with Zend\Expressive\Tooling\CreateHandler\CreateHandlerCommand where the name is needed to determin what config is loaded.
1 parent d8e6d18 commit 5694c4e

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

composer.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/LazyLoadingCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function __construct(string $name, string $commandClass, ContainerInterfa
2929
/** @var Command $command */
3030
$command = (new ReflectionClass($commandClass))->newInstanceWithoutConstructor();
3131
$command->setDefinition(new InputDefinition());
32+
$command->setName($name);
3233
$command->configure();
3334

3435
$this->setName($name);

0 commit comments

Comments
 (0)