public function run() { if (PHP_SAPI == "cli") { $this->context->console->run(); } else { parent::run(); } }