}
// The Symfony routing component's exceptions implement this interface we
// can type-hint it to make sure we're only providing special handling
// for those exceptions, and not other random exceptions that occur.
catch (ExceptionInterface $e)
{
$this->handleRoutingException($e);
}

}
// Once we have the route, we can just run it to get the responses, which will
// always be instances of the Response class. Once we have the responses we
// will execute the global "after" middlewares to finish off the request.
else
{
$this->currentRoute = $route = $this->findRoute($request);
$response = $route->run($request);

| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/
$app->run();
/*