* @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 |
USER | casadosr |
FCGI_ROLE | RESPONDER |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgbeAOFC2s25QHI9bGeH1QAAAHs |
GEOIP_COUNTRY_CODE | US |
GEOIP_COUNTRY_NAME | United States |
GEOIP_REGION | VA |
GEOIP_CITY | Ashburn |
GEOIP_DMA_CODE | 511 |
GEOIP_AREA_CODE | 703 |
GEOIP_LATITUDE | 39.046902 |
GEOIP_LONGITUDE | -77.490303 |
SCRIPT_URL | /usados/relogios |
SCRIPT_URI | http://www.casadosrelogios.pt/usados/relogios |
CFG_CLUSTER | cluster015 |
ENVIRONMENT | production |
PHP_VER | 5_3 |
REGISTER_GLOBALS | 0 |
HTTP_HOST | www.casadosrelogios.pt |
HTTP_X_PREDICTOR | 1 |
HTTP_X_FORWARDED_FOR | 44.201.96.213 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_OVHREQUEST_ID | 9d5e3aa9ae938ec28855dcd64e80f307 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_PORT | 80 |
HTTP_X_REMOTE_PORT | 56122 |
HTTP_X_REMOTE_IP | 44.201.96.213 |
HTTP_X_REMOTE_PROTO | http |
HTTP_FORWARDED | for=44.201.96.213; proto=http; host=www.casadosrelogios.pt |
HTTP_REMOTE_PORT | 56122 |
HTTP_X_IPLB_UNIQUE_ID | 2CC960D5:DB3A_5E174F03:0050_6606DE00_58C0:57FB |
HTTP_REMOTE_IP | 44.201.96.213 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.casadosrelogios.pt |
SERVER_ADDR | 10.15.20.88 |
SERVER_PORT | 80 |
REMOTE_ADDR | 44.201.96.213 |
DOCUMENT_ROOT | /home/casadosr/www |
SERVER_ADMIN | postmaster@www.casadosrelogios.pt |
SCRIPT_FILENAME | /home/casadosr/www/index.php |
REMOTE_PORT | 19394 |
REDIRECT_URL | /usados/relogios |
REDIRECT_QUERY_STRING | laravel_session=05ndmmnsblqbtchs7r77dvf9p7 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | laravel_session=05ndmmnsblqbtchs7r77dvf9p7 |
REQUEST_URI | /usados/relogios?laravel_session=05ndmmnsblqbtchs7r77dvf9p7 |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711726080.4262 |
REQUEST_TIME | 1711726080 |
argv | Array ( [0] => laravel_session=05ndmmnsblqbtchs7r77dvf9p7 ) |
argc | 1 |
Key | Value |
laravel_session | 05ndmmnsblqbtchs7r77dvf9p7 |
Key | Value |
_sf2_attributes | Array ( [_token] => XE64D99mO40zlFHYmACSBmYZ5aAjBsr8nIFrg2So ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711726080 [c] => 1711726080 [l] => 7200 ) |
Key | Value |
USER | casadosr |
FCGI_ROLE | RESPONDER |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgbeAOFC2s25QHI9bGeH1QAAAHs |
GEOIP_COUNTRY_CODE | US |
GEOIP_COUNTRY_NAME | United States |
GEOIP_REGION | VA |
GEOIP_CITY | Ashburn |
GEOIP_DMA_CODE | 511 |
GEOIP_AREA_CODE | 703 |
GEOIP_LATITUDE | 39.046902 |
GEOIP_LONGITUDE | -77.490303 |
SCRIPT_URL | /usados/relogios |
SCRIPT_URI | http://www.casadosrelogios.pt/usados/relogios |
CFG_CLUSTER | cluster015 |
ENVIRONMENT | production |
PHP_VER | 5_3 |
REGISTER_GLOBALS | 0 |
HTTP_HOST | www.casadosrelogios.pt |
HTTP_X_PREDICTOR | 1 |
HTTP_X_FORWARDED_FOR | 44.201.96.213 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_OVHREQUEST_ID | 9d5e3aa9ae938ec28855dcd64e80f307 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_PORT | 80 |
HTTP_X_REMOTE_PORT | 56122 |
HTTP_X_REMOTE_IP | 44.201.96.213 |
HTTP_X_REMOTE_PROTO | http |
HTTP_FORWARDED | for=44.201.96.213; proto=http; host=www.casadosrelogios.pt |
HTTP_REMOTE_PORT | 56122 |
HTTP_X_IPLB_UNIQUE_ID | 2CC960D5:DB3A_5E174F03:0050_6606DE00_58C0:57FB |
HTTP_REMOTE_IP | 44.201.96.213 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.casadosrelogios.pt |
SERVER_ADDR | 10.15.20.88 |
SERVER_PORT | 80 |
REMOTE_ADDR | 44.201.96.213 |
DOCUMENT_ROOT | /home/casadosr/www |
SERVER_ADMIN | postmaster@www.casadosrelogios.pt |
SCRIPT_FILENAME | /home/casadosr/www/index.php |
REMOTE_PORT | 19394 |
REDIRECT_URL | /usados/relogios |
REDIRECT_QUERY_STRING | laravel_session=05ndmmnsblqbtchs7r77dvf9p7 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | laravel_session=05ndmmnsblqbtchs7r77dvf9p7 |
REQUEST_URI | /usados/relogios?laravel_session=05ndmmnsblqbtchs7r77dvf9p7 |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711726080.4262 |
REQUEST_TIME | 1711726080 |
argv | Array ( [0] => laravel_session=05ndmmnsblqbtchs7r77dvf9p7 ) |
argc | 1 |