dont return 404 error on null return from existing route.

This commit is contained in:
Taylor Otwell 2011-11-20 22:28:51 -06:00
parent e55f9e9fad
commit 7a9631975f
1 changed files with 0 additions and 9 deletions

View File

@ -111,15 +111,6 @@ public function call()
}
}
// If we still don't have a response, we're out of options and
// will use the 404 response. We will still let the response
// hit the after filter in case the developer is doing any
// logging or other work where every response is needed.
if (is_null($response))
{
$response = Response::error('404');
}
// The after filter and the framework expects all responses to
// be instances of the Response class. If the route did not
// return an instsance of Response, we will make on now.