/** * Run application. */ public function run() { $this->error(function () { $this->renderError(500); }); $this->notFound(function () { $this->renderError(404); }); parent::run(); }