setupConsole($input, $output); // Old versions of Grav called this command after grav upgrade. // We need make this command to work with older ConsoleTrait: if (method_exists($this, 'initializeGrav')) { $this->initializeGrav(); } return $this->serve(); } /** * Override with your implementation. * * @return int */ protected function serve() { // Return error. return 1; } }