$value = new Response($value); } return $value->prepare($request); } protected function handleRoutingException(\Exception $e) { if ($e instanceof ResourceNotFoundException) { throw new NotFoundHttpException($e->getMessage()); } elseif ($e instanceof MethodNotAllowedException) { $allowed = $e->getAllowedMethods();
} protected function findRoute(Request $request) { try { $path = $request->getPathInfo(); $parameters = $this->getUrlMatcher($request)->match($path); } catch (ExceptionInterface $e) { $this->handleRoutingException($e); } $route = $this->routes->get($parameters['_route']);
public function dispatch(Request $request) { $this->currentRequest = $request; $response = $this->callGlobalFilter($request, 'before'); if (!is_null($response)) { $response = $this->prepare($response, $request); } else { $this->currentRoute = $route = $this->findRoute($request); $response = $route->run($request); }
} public function dispatch(Request $request) { if ($this->isDownForMaintenance()) { $response = $this['events']->until('illuminate.app.down'); return $this->prepareResponse($response, $request); } else { return $this['router']->dispatch($this->prepareRequest($request)); } }
$this->fireAppCallbacks($this->shutdownCallbacks); } else { $this->shutdownCallbacks[] = $callback; } } public function run() { $response = $this->dispatch($this['request']); $this['router']->callCloseFilter($this['request'], $response); $response->send();
| 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 |
USER | basinox |
HOME | /home/basinox |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgaMxcfifmhT_f3xUOgaAgAAUwY |
REDIRECT_HTTP_AUTHORIZATION | |
REDIRECT_SCRIPT_URL | /produtos/produtos-especiais |
REDIRECT_SCRIPT_URI | https://basinox.com.br/produtos/produtos-especiais |
REDIRECT_HTTPS | on |
REDIRECT_SSL_TLS_SNI | basinox.com.br |
REDIRECT_HTTP2 | on |
REDIRECT_H2PUSH | off |
REDIRECT_H2_PUSH | off |
REDIRECT_H2_PUSHED | |
REDIRECT_H2_PUSHED_ON | |
REDIRECT_H2_STREAM_ID | 3 |
REDIRECT_H2_STREAM_TAG | 3445866-40-3 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgaMxcfifmhT_f3xUOgaAgAAUwY |
HTTP_AUTHORIZATION | |
SCRIPT_URL | /produtos/produtos-especiais |
SCRIPT_URI | https://basinox.com.br/produtos/produtos-especiais |
HTTPS | on |
SSL_TLS_SNI | basinox.com.br |
HTTP2 | on |
H2PUSH | off |
H2_PUSH | off |
H2_PUSHED | |
H2_PUSHED_ON | |
H2_STREAM_ID | 3 |
H2_STREAM_TAG | 3445866-40-3 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://basinox.com.br/produtos/produtos-especiais |
HTTP_HOST | basinox.com.br |
HTTP_MAX_FORWARDS | 10 |
LD_LIBRARY_PATH | /usr/local/apache2/lib |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | basinox.com.br |
SERVER_ADDR | 191.6.213.103 |
SERVER_PORT | 443 |
REMOTE_ADDR | 54.145.183.34 |
DOCUMENT_ROOT | /home/basinox/www/ |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/basinox/www/ |
SERVER_ADMIN | basinox@basinox.com.br |
SCRIPT_FILENAME | //home/basinox/www/index.php |
REMOTE_PORT | 54854 |
REDIRECT_URL | /produtos/produtos-especiais |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/2.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /produtos/produtos-especiais |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711705285.92 |
REQUEST_TIME | 1711705285 |
argv | Array ( ) |
argc | 0 |
Key | Value |
_sf2_attributes | Array ( [_token] => 8huckGplzYJrbONb55avZGRKpUJuVOJioEoI8VGO ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711705285 [c] => 1711705285 [l] => 7200 ) |
Key | Value |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
USER | basinox |
HOME | /home/basinox |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgaMxcfifmhT_f3xUOgaAgAAUwY |
REDIRECT_HTTP_AUTHORIZATION | |
REDIRECT_SCRIPT_URL | /produtos/produtos-especiais |
REDIRECT_SCRIPT_URI | https://basinox.com.br/produtos/produtos-especiais |
REDIRECT_HTTPS | on |
REDIRECT_SSL_TLS_SNI | basinox.com.br |
REDIRECT_HTTP2 | on |
REDIRECT_H2PUSH | off |
REDIRECT_H2_PUSH | off |
REDIRECT_H2_PUSHED | |
REDIRECT_H2_PUSHED_ON | |
REDIRECT_H2_STREAM_ID | 3 |
REDIRECT_H2_STREAM_TAG | 3445866-40-3 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgaMxcfifmhT_f3xUOgaAgAAUwY |
HTTP_AUTHORIZATION | |
SCRIPT_URL | /produtos/produtos-especiais |
SCRIPT_URI | https://basinox.com.br/produtos/produtos-especiais |
HTTPS | on |
SSL_TLS_SNI | basinox.com.br |
HTTP2 | on |
H2PUSH | off |
H2_PUSH | off |
H2_PUSHED | |
H2_PUSHED_ON | |
H2_STREAM_ID | 3 |
H2_STREAM_TAG | 3445866-40-3 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://basinox.com.br/produtos/produtos-especiais |
HTTP_HOST | basinox.com.br |
HTTP_MAX_FORWARDS | 10 |
LD_LIBRARY_PATH | /usr/local/apache2/lib |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | basinox.com.br |
SERVER_ADDR | 191.6.213.103 |
SERVER_PORT | 443 |
REMOTE_ADDR | 54.145.183.34 |
DOCUMENT_ROOT | /home/basinox/www/ |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/basinox/www/ |
SERVER_ADMIN | basinox@basinox.com.br |
SCRIPT_FILENAME | //home/basinox/www/index.php |
REMOTE_PORT | 54854 |
REDIRECT_URL | /produtos/produtos-especiais |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/2.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /produtos/produtos-especiais |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711705285.92 |
REQUEST_TIME | 1711705285 |
argv | Array ( ) |
argc | 0 |