* @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 | www-data |
HOME | /var/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /var/www/public/index.php |
QUERY_STRING | |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /dr501/forgot |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /var/www/public |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.4.6 |
REMOTE_ADDR | 54.197.64.207 |
REMOTE_PORT | 32840 |
SERVER_ADDR | 162.243.21.120 |
SERVER_PORT | 443 |
SERVER_NAME | koshercasas.com |
HTTPS | on |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.koshercasas.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711632889.3024 |
REQUEST_TIME | 1711632889 |
Key | Value |
_sf2_attributes | Array ( [_token] => 5wehbrKtZmSeNwcgAk085BkD3QysHLgvSNo7iH08 [search_locations] => Array ( [0] => Array ( [id] => 15 [name] => Cruise from Juno to Sitka ) [1] => Array ( [id] => 16 [name] => Sri Lanka Villas ) [2] => Array ( [id] => 17 [name] => Anguilla Villas ) [3] => Array ( [id] => 18 [name] => Safaris ) [4] => Array ( [id] => 20 [name] => Thailand Villas ) [5] => Array ( [id] => 21 [name] => Dominican Republic Villas ) [6] => Array ( [id] => 22 [name] => Mexico Villas ) [7] => Array ( [id] => 23 [name] => Alaskan Wilderness ) [8] => Array ( [id] => 25 [name] => Tuscany ) [9] => Array ( [id] => 28 [name] => Galapagos Islands ) [10] => Array ( [id] => 29 [name] => Amazon Rainforest ) [11] => Array ( [id] => 30 [name] => The Andes Mountains ) [12] => Array ( [id] => 31 [name] => Quito ) [13] => Array ( [id] => 32 [name] => Guayaquil ) [14] => Array ( [id] => 35 [name] => Jamaica Villas ) [15] => Array ( [id] => 36 [name] => California ) [16] => Array ( [id] => 37 [name] => Florida ) [17] => Array ( [id] => 38 [name] => Mykonos ) [18] => Array ( [id] => 39 [name] => Nassau ) [19] => Array ( [id] => 40 [name] => Cruise ) [20] => Array ( [id] => 41 [name] => Grace Bay ) [21] => Array ( [id] => 42 [name] => Marbella ) [22] => Array ( [id] => 43 [name] => L'anse Aux Epines ) [23] => Array ( [id] => 44 [name] => Platinum Coast ) [24] => Array ( [id] => 3 [name] => Guanacaste ) [25] => Array ( [id] => 1 [name] => Manuel Antonio Area ) [26] => Array ( [id] => 2 [name] => Arenal ) [27] => Array ( [id] => 13 [name] => Other Areas ) ) [search_countries] => Array ( [0] => Array ( [id] => 51 [name] => Africa ) [1] => Array ( [id] => 52 [name] => Anguilla ) [2] => Array ( [id] => 62 [name] => Bahamas ) [3] => Array ( [id] => 66 [name] => Barbados ) [4] => Array ( [id] => 1 [name] => Costa Rica ) [5] => Array ( [id] => 63 [name] => Croatia ) [6] => Array ( [id] => 46 [name] => Dominican Republic ) [7] => Array ( [id] => 58 [name] => Ecuador-Galapagos ) [8] => Array ( [id] => 61 [name] => Greece ) [9] => Array ( [id] => 57 [name] => Italy, Tuscany ) [10] => Array ( [id] => 56 [name] => Jamaica ) [11] => Array ( [id] => 55 [name] => Mexico ) [12] => Array ( [id] => 64 [name] => Spain ) [13] => Array ( [id] => 53 [name] => Sri Lanka ) [14] => Array ( [id] => 54 [name] => Thailand ) [15] => Array ( [id] => 60 [name] => Turks @ Caicos ) [16] => Array ( [id] => 59 [name] => United States ) ) ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711632889 [c] => 1711632889 [l] => 36000 ) |