Ensure that Zend is loaded when showing status information in the CLI
fixes #7869
This commit is contained in:
parent
b214ed5d3b
commit
196b6a4875
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue