We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d37c6 commit 4220272Copy full SHA for 4220272
src/ConsoleApplication.php
@@ -21,6 +21,11 @@ class ConsoleApplication extends Application
21
*/
22
protected $container;
23
24
+ /**
25
+ * @var string
26
+ */
27
+ protected $commandName;
28
+
29
/**
30
* ConsoleApplication constructor.
31
* @param ContainerInterface $container
@@ -62,6 +67,9 @@ public function trans($key)
62
67
63
68
public function doRun(InputInterface $input, OutputInterface $output)
64
69
{
70
+ if ($commandName = $this->getCommandName($input)) {
71
+ $this->commandName = $commandName;
72
+ }
65
73
$this->registerEvents();
66
74
$this->registerCommandsFromAutoWireConfiguration();
75
return parent::doRun(
0 commit comments