Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 15, 2012
1 parent a0b1d42 commit 479a85e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions book/part7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Move the request handling logic into its own ``Simplex\\Framework`` class::
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\HttpKernel\Controller\ControllerResolver;

class Framework
Expand All @@ -48,9 +49,9 @@ Move the request handling logic into its own ``Simplex\\Framework`` class::
$arguments = $this->resolver->getArguments($request, $controller);

return call_user_func_array($controller, $arguments);
} catch (Routing\Exception\ResourceNotFoundException $e) {
} catch (ResourceNotFoundException $e) {
return new Response('Not Found', 404);
} catch (Exception $e) {
} catch (\Exception $e) {
return new Response('An error occurred', 500);
}
}
Expand Down

0 comments on commit 479a85e

Please sign in to comment.