Example #1
0
 /**
  * Dispatches a not found route if it exists or hands it off to the built in error page
  *
  * @throws Http\Router\MethodNotAllowedException
  */
 private function dispatchNotFound()
 {
     if ($this->router->offsetExists("404")) {
         $notFoundRoute = $this->router->getItem('404');
         Dispatcher::handle($notFoundRoute, $this->request, $this->container);
     } else {
         $this->genericNotFound();
     }
 }