/** * Checks if the route is valid and prepares the router for * the front controller * @return bool */ public function route() { $this->parseRoute($this->_request->getPath()); if (true !== $this->_routeCollection->has($this)) { $this->_response->setStatusCode(404); $this->_response->sendNotFoundHeader($this->_request->getPath()); } }