* @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/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
PP_CUSTOM_PHP_INI | /var/www/vhosts/system/oilreach.com/etc/php.ini |
PP_CUSTOM_PHP_CGI_INDEX | fastcgi |
SCRIPT_NAME | /index.php |
REQUEST_URI | /filtration |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /filtration |
REMOTE_PORT | 49478 |
SCRIPT_FILENAME | /var/www/vhosts/oilreach.com/public/index.php |
SERVER_ADMIN | kat@designfreak.me |
CONTEXT_DOCUMENT_ROOT | /var/www/vhosts/oilreach.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /var/www/vhosts/oilreach.com/public |
REMOTE_ADDR | 197.149.69.234 |
SERVER_PORT | 80 |
SERVER_ADDR | 109.200.15.235 |
SERVER_NAME | oilreach.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at oilreach.com Port 80</address> |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_REFERER | http://oilreach.com/services |
HTTP_ACCEPT_LANGUAGE | en-us |
HTTP_USER_AGENT | SiteSucker for macOS/2.11 |
HTTP_COOKIE | laravel_session=fgaqheqpnthg1c5vn8q71885m2 |
HTTP_ACCEPT | text/html,*/*;q=0.8 |
HTTP_CONNECTION | close |
HTTP_X_ACCEL_INTERNAL | /internal-nginx-static-location |
HTTP_X_REAL_IP | 197.149.69.234 |
HTTP_HOST | oilreach.com |
SCRIPT_URI | http://oilreach.com/filtration |
SCRIPT_URL | /filtration |
REDIRECT_STATUS | 200 |
REDIRECT_PP_CUSTOM_PHP_CGI_INDEX | fastcgi |
REDIRECT_PP_CUSTOM_PHP_INI | /var/www/vhosts/system/oilreach.com/etc/php.ini |
REDIRECT_SCRIPT_URI | http://oilreach.com/filtration |
REDIRECT_SCRIPT_URL | /filtration |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1510301540.5059 |
REQUEST_TIME | 1510301540 |
Key | Value |
laravel_session | fgaqheqpnthg1c5vn8q71885m2 |
Key | Value |
_sf2_attributes | Array ( [_token] => cTPlEbzxZOp2nAlekN5DLZwl0sA1Ab3kBUF2Agpv [flash] => Array ( [old] => Array ( ) [new] => Array ( ) ) ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1510301540 [c] => 1510301527 [l] => 7200 ) |