$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/23/5f/domadoresdepedra1/public_html/ |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_HOST | www.domadoresdepedra.com.br |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_CLIENTPORT | 58310 |
HTTP_X_FORWARDED_FOR | 44.204.117.57 |
HTTP_X_VARNISH | 39378746 |
LOG_SUBDIR | domadoresdepedra1 |
PATH | /bin:/usr/bin |
PHPRC | /home/domadoresdepedra1/ |
QUERY_STRING | |
REDIRECT_LOG_SUBDIR | domadoresdepedra1 |
REDIRECT_SCRIPT_URI | http://www.domadoresdepedra.com.br/home |
REDIRECT_SCRIPT_URL | /home |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgZZw7rKmV0AAGLIQYgAAAAO |
REDIRECT_URL | /home |
REDIRECT_forwarded | 1 |
REMOTE_ADDR | 44.204.117.57 |
REMOTE_PORT | 59014 |
REQUEST_METHOD | GET |
REQUEST_URI | /home |
SCRIPT_FILENAME | /home/storage/6/23/5f/domadoresdepedra1/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | http://www.domadoresdepedra.com.br/home |
SCRIPT_URL | /home |
SERVER_ADDR | 186.202.153.93 |
SERVER_ADMIN | webmaster@domadoresdepedra.com.br |
SERVER_NAME | www.domadoresdepedra.com.br |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SUPHP_URI | /index.php |
UNIQUE_ID | ZgZZw7rKmV0AAGLIQYgAAAAO |
forwarded | 1 |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711692227.8941 |
REQUEST_TIME | 1711692227 |
argv | Array ( ) |
argc | 0 |
Key | Value |
_sf2_attributes | Array ( [_token] => AzjvDXiHJAUNuFe5lhjFF3F8nSVykrbfNjLalWfW ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711692228 [c] => 1711692228 [l] => 7200 ) |
Key | Value |
DOCUMENT_ROOT | /home/storage/6/23/5f/domadoresdepedra1/public_html/ |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_HOST | www.domadoresdepedra.com.br |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_CLIENTPORT | 58310 |
HTTP_X_FORWARDED_FOR | 44.204.117.57 |
HTTP_X_VARNISH | 39378746 |
LOG_SUBDIR | domadoresdepedra1 |
PATH | /bin:/usr/bin |
PHPRC | /home/domadoresdepedra1/ |
QUERY_STRING | |
REDIRECT_LOG_SUBDIR | domadoresdepedra1 |
REDIRECT_SCRIPT_URI | http://www.domadoresdepedra.com.br/home |
REDIRECT_SCRIPT_URL | /home |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgZZw7rKmV0AAGLIQYgAAAAO |
REDIRECT_URL | /home |
REDIRECT_forwarded | 1 |
REMOTE_ADDR | 44.204.117.57 |
REMOTE_PORT | 59014 |
REQUEST_METHOD | GET |
REQUEST_URI | /home |
SCRIPT_FILENAME | /home/storage/6/23/5f/domadoresdepedra1/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | http://www.domadoresdepedra.com.br/home |
SCRIPT_URL | /home |
SERVER_ADDR | 186.202.153.93 |
SERVER_ADMIN | webmaster@domadoresdepedra.com.br |
SERVER_NAME | www.domadoresdepedra.com.br |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SUPHP_URI | /index.php |
UNIQUE_ID | ZgZZw7rKmV0AAGLIQYgAAAAO |
forwarded | 1 |