public function handleRouteNotFound() { // @todo add route not found view $exception = new NotFoundException(); if ($this->getStrategy() instanceof RestfulStrategy) { return $exception->getJsonResponse(); } throw $exception; }
/** * Handle a not found route * * @return \Symfony\Component\HttpFoundation\Response */ protected function handleNotFound() { $exception = new NotFoundException(); if ($this->getStrategy() instanceof RestfulStrategy) { return $exception->getJsonResponse(); } throw $exception; }