/** * @inheritDoc */ public function run() { $this->dispatch('core.app.run.pre', $this); $this->response = $response = $this->handle($this->getRequest()); if ($response instanceof View) { $this->response = $response = new Response($response->fetch()); } $response->send(); $this->terminate(); }