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:
Thomas Gelf 2014-06-04 22:52:38 +00:00
parent a221afd933
commit e076d2d1d6
1 changed files with 2 additions and 2 deletions

View File

@ -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();