* @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);
| and wonderful applications we have created for them. | */ $app->run();
Key | Value |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |
HTTP_ACCEPT | */* |
CONTENT_LENGTH | 0 |
HTTP_HOST | www.lespnet.ba |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_HOST | www.lespnet.ba |
HTTP_X_FORWARDED_PORT | 80 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_FORWARDED_SERVER | www.lespnet.ba |
HTTP_X_REAL_IP | ::ffff:44.222.231.51 |
REDIRECT_UNIQUE_ID | ZgamRCMzV4Bxt20ot6koUgAAAIk |
REDIRECT_SCRIPT_URL | /en/about-us |
REDIRECT_SCRIPT_URI | http://www.lespnet.ba/en/about-us |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgamRCMzV4Bxt20ot6koUgAAAIk |
SCRIPT_URL | /en/about-us |
SCRIPT_URI | http://www.lespnet.ba/en/about-us |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.lespnet.ba |
SERVER_ADDR | 144.76.117.24 |
SERVER_PORT | 80 |
REMOTE_ADDR | 44.222.231.51 |
DOCUMENT_ROOT | /home/lespnet/public_html |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/lespnet/public_html |
SERVER_ADMIN | webmaster@lespnet.ba |
SCRIPT_FILENAME | /home/lespnet/public_html/index.php |
REMOTE_PORT | 49365 |
REDIRECT_URL | /en/about-us |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /en/about-us |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711812.3137 |
REQUEST_TIME | 1711711812 |
Key | Value |
_sf2_attributes | Array ( [_token] => MVQcJsFwyXTPO3UYfjfwJFRD3Mhgg9awn9rg92nO ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711711812 [c] => 1711711812 [l] => 7200 ) |
Key | Value |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |