$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 |
USER | web_difaty.com.br |
HOME | /home/difaty.com.br |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | Zgbk7BZMZC1ljajrDIOOJQADp34 |
REDIRECT_HTTPS | on |
REDIRECT_SSL_TLS_SNI | www.difaty.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 | 1150287-24-3 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | Zgbk7BZMZC1ljajrDIOOJQADp34 |
HTTPS | on |
SSL_TLS_SNI | www.difaty.com.br |
HTTP2 | on |
H2PUSH | off |
H2_PUSH | off |
H2_PUSHED | |
H2_PUSHED_ON | |
H2_STREAM_ID | 3 |
H2_STREAM_TAG | 1150287-24-3 |
proxy-nokeepalive | 1 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.difaty.com.br |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.difaty.com.br |
SERVER_ADDR | 187.84.235.148 |
SERVER_PORT | 443 |
REMOTE_ADDR | 3.235.140.73 |
DOCUMENT_ROOT | /home/difaty.com.br/public |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/difaty.com.br/public |
SERVER_ADMIN | php@difaty.com.br |
SCRIPT_FILENAME | /home/difaty.com.br/public/index.php |
REMOTE_PORT | 48860 |
REDIRECT_URL | /loja/catalogo.php |
REDIRECT_QUERY_STRING | loja=681448&categoria=7&pg=6 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/2.0 |
REQUEST_METHOD | GET |
QUERY_STRING | loja=681448&categoria=7&pg=6 |
REQUEST_URI | /loja/catalogo.php?loja=681448&categoria=7&pg=6 |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727852.6221 |
REQUEST_TIME | 1711727852 |
Key | Value |
loja | 681448 |
categoria | 7 |
pg | 6 |
Key | Value |
_sf2_attributes | Array ( [_token] => HxoITGQXdU39vqsgqsmgXh1fB0tdxvtp3kXOapP2 ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711727852 [c] => 1711727852 [l] => 7200 ) |