* @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 |
HOSTNAME | 4abed548e6c5 |
PHPIZE_DEPS | autoconf file g++ gcc libc-dev make pkgconf re2c |
PHP_INI_DIR | /usr/local/etc/php |
PHP_EXTRA_CONFIGURE_ARGS | --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data |
GPG_KEYS | 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763 |
PHP_VERSION | 7.0.8 |
PHP_FILENAME | php-7.0.8.tar.xz |
PHP_SHA256 | 0a2142c458b0846f556b16da1c927d74c101aa951bb840549abe5c58584fb394 |
HOME | /home/www-data |
USER | www-data |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | mdstn.com |
SCRIPT_FILENAME | /vhosts/mdstn.com/httpdocs/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | ~^mdstn\.com(\.dev)?$ |
SERVER_PORT | 443 |
SERVER_ADDR | 172.18.0.22 |
REMOTE_PORT | 42474 |
REMOTE_ADDR | 44.221.83.121 |
SERVER_SOFTWARE | nginx/1.21.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /vhosts/mdstn.com/httpdocs |
DOCUMENT_URI | /index.php |
REQUEST_URI | /bundles/webs/personal/img/work/photography/13.jpg |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711691852.9586 |
REQUEST_TIME | 1711691852 |
argv | Array ( ) |
argc | 0 |
Key | Value |
_sf2_attributes | Array ( [_token] => F6tUg7zwhGcfhbZPyp3aYlmxkoehvfjQiGHbuvyy ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711691852 [c] => 1711691852 [l] => 7200 ) |
Key | Value |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
HOSTNAME | 4abed548e6c5 |
PHPIZE_DEPS | autoconf file g++ gcc libc-dev make pkgconf re2c |
PHP_INI_DIR | /usr/local/etc/php |
PHP_EXTRA_CONFIGURE_ARGS | --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data |
GPG_KEYS | 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763 |
PHP_VERSION | 7.0.8 |
PHP_FILENAME | php-7.0.8.tar.xz |
PHP_SHA256 | 0a2142c458b0846f556b16da1c927d74c101aa951bb840549abe5c58584fb394 |
HOME | /home/www-data |
USER | www-data |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | mdstn.com |
SCRIPT_FILENAME | /vhosts/mdstn.com/httpdocs/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | ~^mdstn\.com(\.dev)?$ |
SERVER_PORT | 443 |
SERVER_ADDR | 172.18.0.22 |
REMOTE_PORT | 42474 |
REMOTE_ADDR | 44.221.83.121 |
SERVER_SOFTWARE | nginx/1.21.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /vhosts/mdstn.com/httpdocs |
DOCUMENT_URI | /index.php |
REQUEST_URI | /bundles/webs/personal/img/work/photography/13.jpg |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711691852.9586 |
REQUEST_TIME | 1711691852 |
argv | Array ( ) |
argc | 0 |