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 955d506 commit 5915128Copy full SHA for 5915128
Console/Application.php
@@ -27,6 +27,7 @@
27
class Application extends BaseApplication
28
{
29
private $kernel;
30
+ private $commandsRegistered = false;
31
32
/**
33
* Constructor.
@@ -65,7 +66,9 @@ public function getKernel()
65
66
*/
67
public function doRun(InputInterface $input, OutputInterface $output)
68
- $this->registerCommands();
69
+ if (!$this->commandsRegistered) {
70
+ $this->registerCommands();
71
+ }
72
73
if (true === $input->hasParameterOption(array('--shell', '-s'))) {
74
$shell = new Shell($this);
@@ -87,5 +90,7 @@ protected function registerCommands()
87
90
$bundle->registerCommands($this);
88
91
}
89
92
93
+
94
+ $this->commandsRegistered = true;
95
96
0 commit comments