bootstrapping: create only one CLI loader instance
This used to work fine as long as you didn't try to interfere from outside to influence the cli loader. The instance returned by cliLoader() was not the same as used internally once dispatching the CLI command. refs #6411
This commit is contained in:
parent
a221afd933
commit
e076d2d1d6
|
@ -138,7 +138,7 @@ class Cli extends ApplicationBootstrap
|
|||
|
||||
protected function dispatchOnce()
|
||||
{
|
||||
$loader = new Loader($this);
|
||||
$loader = $this->cliLoader();
|
||||
$loader->parseParams();
|
||||
$loader->dispatch();
|
||||
Benchmark::measure('All done');
|
||||
|
@ -149,7 +149,7 @@ class Cli extends ApplicationBootstrap
|
|||
|
||||
protected function dispatchEndless()
|
||||
{
|
||||
$loader = new Loader($this);
|
||||
$loader = $this->cliLoader();
|
||||
$loader->parseParams();
|
||||
$screen = Screen::instance();
|
||||
|
||||
|
|
Loading…
Reference in New Issue