Ensure that Zend is loaded when showing status information in the CLI

fixes #7869
This commit is contained in:
Johannes Meyer 2014-12-09 15:38:13 +01:00
parent b214ed5d3b
commit 196b6a4875
2 changed files with 2 additions and 1 deletions

View File

@ -351,7 +351,7 @@ abstract class ApplicationBootstrap
* *
* @return $this * @return $this
*/ */
protected function setupZendAutoloader() public function setupZendAutoloader()
{ {
require_once 'Zend/Loader/Autoloader.php'; require_once 'Zend/Loader/Autoloader.php';

View File

@ -25,6 +25,7 @@ class ListCommand extends Command
public function init() public function init()
{ {
$this->app->setupZendAutoloader();
$this->backend = Backend::createBackend($this->params->shift('backend')); $this->backend = Backend::createBackend($this->params->shift('backend'));
$this->dumpSql = $this->params->shift('showsql'); $this->dumpSql = $this->params->shift('showsql');
} }