* @param Exception $e * @return void */ protected function handleRoutingException(\Exception $e) { if ($e instanceof ResourceNotFoundException) { throw new NotFoundHttpException($e->getMessage()); }
} // 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);
if ($this->isDownForMaintenance()) { $response = $this['events']->until('illuminate.app.down'); if ( ! is_null($response)) return $this->prepareResponse($response, $request); } return $this['router']->dispatch($this->prepareRequest($request)); }
/** * Handles the given request and delivers the response. * * @return void */ public function run() { $response = $this->dispatch($this['request']); $this['router']->callCloseFilter($this['request'], $response);
| 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(); /*
Key | Value |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |
HTTP_ACCEPT | */* |
CONTENT_LENGTH | 0 |
HTTP_HOST | laquerciaestate.com |
HTTP_USER_AGENT | claudebot |
REDIRECT_REDIRECT_UNIQUE_ID | Zga_gNQNyk03Z-G65kdZTAAAACI |
REDIRECT_REDIRECT_SCRIPT_URL | /pictures/villa-rental_lRqPpsIE.jpg |
REDIRECT_REDIRECT_SCRIPT_URI | http://laquerciaestate.com/pictures/villa-rental_lRqPpsIE.jpg |
REDIRECT_REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | Zga_gNQNyk03Z-G65kdZTAAAACI |
REDIRECT_SCRIPT_URL | /pictures/villa-rental_lRqPpsIE.jpg |
REDIRECT_SCRIPT_URI | http://laquerciaestate.com/pictures/villa-rental_lRqPpsIE.jpg |
REDIRECT_STATUS | 200 |
UNIQUE_ID | Zga_gNQNyk03Z-G65kdZTAAAACI |
SCRIPT_URL | /pictures/villa-rental_lRqPpsIE.jpg |
SCRIPT_URI | http://laquerciaestate.com/pictures/villa-rental_lRqPpsIE.jpg |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | laquerciaestate.com |
SERVER_ADDR | 81.88.52.23 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.81.57.77 |
DOCUMENT_ROOT | /home/ol3l1fql/public_html |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/ol3l1fql/public_html |
SERVER_ADMIN | webmaster@laquerciaestate.com |
SCRIPT_FILENAME | /home/ol3l1fql/public_html/public/index.php |
REMOTE_PORT | 56028 |
REDIRECT_URL | /public/pictures/villa-rental_lRqPpsIE.jpg |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /pictures/villa-rental_lRqPpsIE.jpg |
SCRIPT_NAME | /public/index.php |
PHP_SELF | /public/index.php |
REQUEST_TIME_FLOAT | 1711718272.7779 |
REQUEST_TIME | 1711718272 |
Key | Value |
_sf2_attributes | Array ( [_token] => 6Qo9eivliKpbi5IkuKiieeml7cTPe09Z7V9DShL5 ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711718272 [c] => 1711718272 [l] => 7200 ) |
Key | Value |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |
HTTP_HOST | laquerciaestate.com |
SCRIPT_NAME | /public/index.php |
SCRIPT_FILENAME | /home/ol3l1fql/public_html/public/index.php |
SCRIPT_URI | http://laquerciaestate.com/pictures/villa-rental_lRqPpsIE.jpg |
REQUEST_URI | /pictures/villa-rental_lRqPpsIE.jpg |
DOCUMENT_ROOT | /home/ol3l1fql/public_html |
REMOTE_ADDR | 3.81.57.77 |