$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 |
| HTTP_HOST | test.tecsaqro.com |
| DOCUMENT_ROOT | /home/tecsaq64/public_html/test/public |
| PATH | /usr/local/bin:/usr/bin:/bin |
| TEMP | /tmp |
| TMP | /tmp |
| TMPDIR | /tmp |
| PWD | / |
| HTTP_ACCEPT | */* |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| CONTENT_LENGTH | 0 |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| REDIRECT_UNIQUE_ID | ahPnsCkCNaQY8cRgzM_W2wAAADc |
| REDIRECT_HTTPS | on |
| REDIRECT_SSL_TLS_SNI | test.tecsaqro.com |
| REDIRECT_STATUS | 200 |
| UNIQUE_ID | ahPnsCkCNaQY8cRgzM_W2wAAADc |
| HTTPS | on |
| SSL_TLS_SNI | test.tecsaqro.com |
| SERVER_SIGNATURE | |
| SERVER_SOFTWARE | Apache |
| SERVER_NAME | test.tecsaqro.com |
| SERVER_ADDR | 107.190.137.130 |
| SERVER_PORT | 443 |
| REMOTE_ADDR | 216.73.217.138 |
| REQUEST_SCHEME | https |
| CONTEXT_PREFIX | |
| CONTEXT_DOCUMENT_ROOT | /home/tecsaq64/public_html/test/public |
| SERVER_ADMIN | webmaster@test.tecsaqro.com |
| SCRIPT_FILENAME | /home/tecsaq64/public_html/test/public/index.php |
| REMOTE_PORT | 52467 |
| REDIRECT_URL | /subl:/open |
| REDIRECT_QUERY_STRING | line=4778&url=file%3A%2F%2Fhome%2Ftecsaq64%2Fpublic_html%2Ftest%2Fbootstrap%2Fcompiled.php |
| SERVER_PROTOCOL | HTTP/1.1 |
| REQUEST_METHOD | GET |
| QUERY_STRING | line=4778&url=file%3A%2F%2Fhome%2Ftecsaq64%2Fpublic_html%2Ftest%2Fbootstrap%2Fcompiled.php |
| REQUEST_URI | /subl:/open?line=4778&url=file%3A%2F%2Fhome%2Ftecsaq64%2Fpublic_html%2Ftest%2Fbootstrap%2Fcompiled.php |
| SCRIPT_NAME | /index.php |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1779689393.1788 |
| REQUEST_TIME | 1779689393 |
| Key | Value |
| line | 4778 |
| url | file://home/tecsaq64/public_html/test/bootstrap/compiled.php |
| Key | Value |
| _sf2_attributes | Array ( [_token] => F6SG7b2VaHSRmvkgphKejjUSrdn6DEpYuUamwjx7 ) |
| _sf2_flashes | Array ( ) |
| _sf2_meta | Array ( [u] => 1779689393 [c] => 1779689393 [l] => 7200 ) |
| Key | Value |
| HTTP_HOST | test.tecsaqro.com |
| DOCUMENT_ROOT | /home/tecsaq64/public_html/test/public |
| PATH | /usr/local/bin:/usr/bin:/bin |
| TEMP | /tmp |
| TMP | /tmp |
| TMPDIR | /tmp |
| PWD | / |