protected static function getPhpconsole() { if (is_null(self::$phpconsole)) { $config = new Config(); $config->loadFromArray(array('backtraceDepth' => 3)); self::$phpconsole = new Phpconsole($config); } return self::$phpconsole; }