* @param Exception $e * @return void */ protected function handleRoutingException(\Exception $e) { if ($e instanceof ResourceNotFoundException) { throw new NotFoundHttpException($e->getMessage()); }
} // The Symfony routing component's exceptions implement this interface we // can type-hint it to make sure we're only providing special handling // for those exceptions, and not other random exceptions that occur. catch (ExceptionInterface $e) { $this->handleRoutingException($e); }
} // Once we have the route, we can just run it to get the responses, which will // always be instances of the Response class. Once we have the responses we // will execute the global "after" middlewares to finish off the request. else { $this->currentRoute = $route = $this->findRoute($request); $response = $route->run($request);
if ($this->isDownForMaintenance()) { $response = $this['events']->until('illuminate.app.down'); if ( ! is_null($response)) return $this->prepareResponse($response, $request); } return $this['router']->dispatch($this->prepareRequest($request)); }
/** * Handles the given request and delivers the response. * * @return void */ public function run() { $response = $this->dispatch($this['request']); $this['router']->callCloseFilter($this['request'], $response);
| 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 |
LSPHP_ENABLE_USER_INI | on |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |
HTTP_ACCEPT | */* |
CONTENT_LENGTH | 0 |
HTTP_HOST | www.osaojoaodecampina.com.br |
HTTP_USER_AGENT | claudebot |
REDIRECT_UNIQUE_ID | Zgalz05sGxJpijYMbf95iQAAAHk |
REDIRECT_QS_SrvConn | 28 |
REDIRECT_QS_AllConn | 28 |
REDIRECT_QS_ConnectionId | 171171169483651068392692 |
REDIRECT_SCRIPT_URL | /programacao/sao-jose-da-mata/08-06 |
REDIRECT_SCRIPT_URI | http://www.osaojoaodecampina.com.br/programacao/sao-jose-da-mata/08-06 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | Zgalz05sGxJpijYMbf95iQAAAHk |
QS_SrvConn | 28 |
QS_AllConn | 28 |
QS_ConnectionId | 171171169483651068392692 |
SCRIPT_URL | /programacao/sao-jose-da-mata/08-06 |
SCRIPT_URI | http://www.osaojoaodecampina.com.br/programacao/sao-jose-da-mata/08-06 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.osaojoaodecampina.com.br |
SERVER_ADDR | 50.116.112.153 |
SERVER_PORT | 80 |
REMOTE_ADDR | 34.239.185.22 |
DOCUMENT_ROOT | /home1/rrena182/osaojoaodecampina.com.br/2022/site/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home1/rrena182/osaojoaodecampina.com.br/2022/site/public |
SERVER_ADMIN | webmaster@osaojoaodecampina.rrenansantos.com.br |
SCRIPT_FILENAME | /home1/rrena182/osaojoaodecampina.com.br/2022/site/public/index.php |
REMOTE_PORT | 54504 |
REDIRECT_URL | /programacao/sao-jose-da-mata/08-06 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /programacao/sao-jose-da-mata/08-06 |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711696.3867 |
REQUEST_TIME | 1711711696 |
argv | Array ( ) |
argc | 0 |
Key | Value |
_sf2_attributes | Array ( [_token] => Yl4V2eLbErWF2Bm8ShvGgknL17KgRmE843G6KCVz ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711711696 [c] => 1711711696 [l] => 10800 ) |