* @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 |
CONTEXT_DOCUMENT_ROOT | /home/centroed/public_html |
CONTEXT_PREFIX | |
DOCUMENT_ROOT | /home/centroed/public_html |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_HOST | www.centroeducacionalmoderno.com.br |
HTTP_USER_AGENT | claudebot |
PATH | /bin:/usr/bin |
QUERY_STRING | |
REDIRECT_SCRIPT_URI | http://www.centroeducacionalmoderno.com.br/index.php/galerias/exibir/85 |
REDIRECT_SCRIPT_URL | /index.php/galerias/exibir/85 |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgU_Rsao5L5FA6RFL3FgegAAAAY |
REDIRECT_URL | /index.php/galerias/exibir/85 |
REMOTE_ADDR | 54.146.154.243 |
REMOTE_PORT | 34324 |
REQUEST_METHOD | GET |
REQUEST_SCHEME | http |
REQUEST_URI | /index.php/galerias/exibir/85 |
SCRIPT_FILENAME | /home/centroed/public_html/site/public/index.php |
SCRIPT_NAME | /site/public/index.php |
SCRIPT_URI | http://www.centroeducacionalmoderno.com.br/index.php/galerias/exibir/85 |
SCRIPT_URL | /index.php/galerias/exibir/85 |
SERVER_ADDR | 184.171.248.34 |
SERVER_ADMIN | webmaster@centroeducacionalmoderno.com.br |
SERVER_NAME | www.centroeducacionalmoderno.com.br |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | America/Sao_Paulo |
UNIQUE_ID | ZgU_Rsao5L5FA6RFL3FgegAAAAY |
ORIG_PATH_INFO | /galerias/exibir/85 |
ORIG_PATH_TRANSLATED | /home/centroed/public_html/site/public/index.php |
PHP_SELF | /site/public/index.php |
REQUEST_TIME_FLOAT | 1711619910.2041 |
REQUEST_TIME | 1711619910 |
argv | Array ( ) |
argc | 0 |
Key | Value |
_sf2_attributes | Array ( [_token] => rorll8OOAgb3bwOJ1BwGwfMYvSxURAhZRPJrP4Yx ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711619910 [c] => 1711619910 [l] => 7200 ) |