$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 |
DOCUMENT_ROOT | /home/storage/6/8d/b0/sancapel2/public_html/ |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
HTTP_ACCEPT | */* |
HTTP_HOST | sancapel.com.br |
HTTP_REFERER | http://www.sancapel.com.br/site/produtos.php?grupo=8&subgrupo=58 |
HTTP_USER_AGENT | claudebot |
LOG_SUBDIR | sancapel2 |
PATH | /bin:/usr/bin |
PHPRC | /home/sancapel2/ |
QUERY_STRING | grupo=8&subgrupo=58 |
REDIRECT_HTTPS | on |
REDIRECT_LOG_SUBDIR | sancapel2 |
REDIRECT_QUERY_STRING | grupo=8&subgrupo=58 |
REDIRECT_SCRIPT_URI | https://sancapel.com.br/site/produtos.php |
REDIRECT_SCRIPT_URL | /site/produtos.php |
REDIRECT_SSL_TLS_SNI | sancapel.com.br |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgalTr-8MzYAAG3NzPMAAAAV |
REDIRECT_URL | /site/produtos.php |
REMOTE_ADDR | 3.237.31.131 |
REMOTE_PORT | 35076 |
REQUEST_METHOD | GET |
REQUEST_URI | /site/produtos.php?grupo=8&subgrupo=58 |
SCRIPT_FILENAME | /home/storage/6/8d/b0/sancapel2/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | https://sancapel.com.br/site/produtos.php |
SCRIPT_URL | /site/produtos.php |
SERVER_ADDR | 191.252.51.54 |
SERVER_ADMIN | webmaster@sancapel.com.br |
SERVER_NAME | sancapel.com.br |
SERVER_PORT | 443 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SSL_TLS_SNI | sancapel.com.br |
SUPHP_URI | /index.php |
UNIQUE_ID | ZgalTr-8MzYAAG3NzPMAAAAV |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711566.3817 |
REQUEST_TIME | 1711711566 |
Key | Value |
grupo | 8 |
subgrupo | 58 |
Key | Value |
_sf2_attributes | Array ( [_token] => nWRPrHZRAxqFzw4gNde2bxVuY1E1q8snVFHe76hN ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711711566 [c] => 1711711566 [l] => 7200 ) |
Key | Value |
DOCUMENT_ROOT | /home/storage/6/8d/b0/sancapel2/public_html/ |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
HTTP_ACCEPT | */* |
HTTP_HOST | sancapel.com.br |
HTTP_REFERER | http://www.sancapel.com.br/site/produtos.php?grupo=8&subgrupo=58 |
HTTP_USER_AGENT | claudebot |
LOG_SUBDIR | sancapel2 |
PATH | /bin:/usr/bin |
PHPRC | /home/sancapel2/ |
QUERY_STRING | grupo=8&subgrupo=58 |
REDIRECT_HTTPS | on |
REDIRECT_LOG_SUBDIR | sancapel2 |
REDIRECT_QUERY_STRING | grupo=8&subgrupo=58 |
REDIRECT_SCRIPT_URI | https://sancapel.com.br/site/produtos.php |
REDIRECT_SCRIPT_URL | /site/produtos.php |
REDIRECT_SSL_TLS_SNI | sancapel.com.br |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgalTr-8MzYAAG3NzPMAAAAV |
REDIRECT_URL | /site/produtos.php |
REMOTE_ADDR | 3.237.31.131 |
REMOTE_PORT | 35076 |
REQUEST_METHOD | GET |
REQUEST_URI | /site/produtos.php?grupo=8&subgrupo=58 |
SCRIPT_FILENAME | /home/storage/6/8d/b0/sancapel2/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | https://sancapel.com.br/site/produtos.php |
SCRIPT_URL | /site/produtos.php |
SERVER_ADDR | 191.252.51.54 |
SERVER_ADMIN | webmaster@sancapel.com.br |
SERVER_NAME | sancapel.com.br |
SERVER_PORT | 443 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SSL_TLS_SNI | sancapel.com.br |
SUPHP_URI | /index.php |
UNIQUE_ID | ZgalTr-8MzYAAG3NzPMAAAAV |