* @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 |
PP_CUSTOM_PHP_INI | /var/www/vhosts/system/paisatgesdecatalunya.com/etc/php.ini |
PP_CUSTOM_PHP_CGI_INDEX | alt-php74-fastcgi |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgZvF8JVhdK50uvv6JJelAAAAAI |
REDIRECT_PERL5LIB | /usr/share/awstats/lib:/usr/share/awstats/plugins |
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY | 0 |
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY | 0 |
REDIRECT_HTTPS | on |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgZvF8JVhdK50uvv6JJelAAAAAI |
PERL5LIB | /usr/share/awstats/lib:/usr/share/awstats/plugins |
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY | 0 |
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY | 0 |
HTTPS | on |
HTTP_HOST | www.paisatgesdecatalunya.com |
HTTP_X_REAL_IP | 34.239.150.247 |
HTTP_X_ACCEL_INTERNAL | /internal-nginx-static-location |
HTTP_CONNECTION | close |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://www.paisatgesdecatalunya.com/fsdfsdf |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.paisatgesdecatalunya.com |
SERVER_ADDR | 79.139.120.50 |
SERVER_PORT | 443 |
REMOTE_ADDR | 34.239.150.247 |
DOCUMENT_ROOT | /var/www/vhosts/39898516.servicio-online.net/paisatgesdecatalunya.com |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /var/www/vhosts/39898516.servicio-online.net/paisatgesdecatalunya.com |
SERVER_ADMIN | root@localhost |
SCRIPT_FILENAME | /var/www/vhosts/39898516.servicio-online.net/paisatgesdecatalunya.com/index.php |
REMOTE_PORT | 52292 |
REDIRECT_URL | /fsdfsdf |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /fsdfsdf |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME | 1711697688 |
Key | Value |
_sf2_attributes | Array ( [_token] => BSrV0WLlOeuMIhIuqgWwe0QmkrywpHJQG6Jy90OV ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711697688 [c] => 1711697688 [l] => 7200 ) |
Key | Value |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
PP_CUSTOM_PHP_INI | /var/www/vhosts/system/paisatgesdecatalunya.com/etc/php.ini |
PP_CUSTOM_PHP_CGI_INDEX | alt-php74-fastcgi |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgZvF8JVhdK50uvv6JJelAAAAAI |
REDIRECT_PERL5LIB | /usr/share/awstats/lib:/usr/share/awstats/plugins |
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY | 0 |
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY | 0 |
REDIRECT_HTTPS | on |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgZvF8JVhdK50uvv6JJelAAAAAI |
PERL5LIB | /usr/share/awstats/lib:/usr/share/awstats/plugins |
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY | 0 |
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY | 0 |
HTTPS | on |
HTTP_HOST | www.paisatgesdecatalunya.com |
HTTP_X_REAL_IP | 34.239.150.247 |
HTTP_X_ACCEL_INTERNAL | /internal-nginx-static-location |
HTTP_CONNECTION | close |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://www.paisatgesdecatalunya.com/fsdfsdf |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.paisatgesdecatalunya.com |
SERVER_ADDR | 79.139.120.50 |
SERVER_PORT | 443 |
REMOTE_ADDR | 34.239.150.247 |
DOCUMENT_ROOT | /var/www/vhosts/39898516.servicio-online.net/paisatgesdecatalunya.com |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /var/www/vhosts/39898516.servicio-online.net/paisatgesdecatalunya.com |
SERVER_ADMIN | root@localhost |
SCRIPT_FILENAME | /var/www/vhosts/39898516.servicio-online.net/paisatgesdecatalunya.com/index.php |
REMOTE_PORT | 52292 |
REDIRECT_URL | /fsdfsdf |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /fsdfsdf |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME | 1711697688 |