<?php
namespace Lumite\Support\Routing;
use Lumite\Exception\Handlers\RouteNotFoundException;
use function abort;
use function config;
class RouteNotFound
{
/**
* @throws RouteNotFoundException
*/
public static function check() {
if (config("app.app_env") != "production") {
throw new RouteNotFoundException("Your given route did not match");
} else {
abort(404);
}
}
}
""" Uncaught Exception: Your given route did not match\n File: Lumite/Support/Routing/RouteNotFound.php\n Line: 18\n \n thrown """
* @return void
*/
public function handleShutdown()
{
// If we reached this step, we are in shutdown handler.
// An exception thrown in a shutdown handler will not be propagated
// to the exception handler. Pass that information along.
$this->canThrowExceptions = false;
// If we are not currently registered, we should not do anything
if (!$this->isRegistered) {
return;
}
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
// If there was a fatal error,
// it was not handled in handleError yet.
$this->allowQuit = false;
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
/**
* @param InspectorFactoryInterface $factory
*
* @return void
*/
public function setInspectorFactory(InspectorFactoryInterface $factory)
{
$this->inspectorFactory = $factory;
}
public function addFrameFilter($filterCallback)
1
""" Uncaught Exception: Your given route did not match\n File: Lumite/Support/Routing/RouteNotFound.php\n Line: 18\n \n thrown """
"/home/larite/public_html/vendor/larite/framework/src/Lumite/Support/Routing/RouteNotFound.php"
18
| Key | Value |
| APP_NAME | "Larite"
|
| APP_ENV | "development"
|
| APP_URL | "http://localhost"
|
| LOG_CHANNEL | "daily"
|
| DB_CONNECTION | "mysql"
|
| DB_HOST | "localhost"
|
| DB_PORT | "3306"
|
| DB_DATABASE | "Larite"
|
| DB_USERNAME | "root"
|
| DB_PASSWORD | "" |
| MAIL_DRIVER | "smtp"
|
| MAIL_HOST | "smtp.gmail.com"
|
| MAIL_PORT | "587"
|
| MAIL_USERNAME | "example@gmail.com"
|
| MAIL_PASSWORD | "password"
|
| MAIL_ENCRYPTION | "tls"
|
| MAIL_FROM_ADDRESS | "no-reply@gmail.com"
|
| MAIL_FROM_NAME | "Larite"
|
| AUTH_TABLE | "users"
|
| PLAIN_BLADE | "true"
|
| Key | Value |
| USER | "larite"
|
| HOME | "/home/larite"
|
| SCRIPT_NAME | "/index.php"
|
| REQUEST_URI | "/docs"
|
| QUERY_STRING | "" |
| REQUEST_METHOD | "GET"
|
| SERVER_PROTOCOL | "HTTP/1.1"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| REDIRECT_URL | "/docs"
|
| REMOTE_PORT | "41172"
|
| SCRIPT_FILENAME | "/home/larite/public_html/index.php"
|
| SERVER_ADMIN | "webmaster@larite.dev"
|
| CONTEXT_DOCUMENT_ROOT | "/home/larite/public_html"
|
| CONTEXT_PREFIX | "" |
| REQUEST_SCHEME | "https"
|
| DOCUMENT_ROOT | "/home/larite/public_html"
|
| REMOTE_ADDR | "216.73.216.164"
|
| SERVER_PORT | "443"
|
| SERVER_ADDR | "15.235.125.139"
|
| SERVER_NAME | "larite.dev"
|
| SERVER_SOFTWARE | "Apache"
|
| SERVER_SIGNATURE | "" |
| PATH | "/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
|
| HTTP_HOST | "larite.dev"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| HTTP_ACCEPT | "*/*"
|
| proxy-nokeepalive | "1"
|
| SSL_TLS_SNI | "larite.dev"
|
| HTTPS | "on"
|
| UNIQUE_ID | "aSuhtIASbgc1y32QuIOLCwAAAAk"
|
| REDIRECT_STATUS | "200"
|
| REDIRECT_SSL_TLS_SNI | "larite.dev"
|
| REDIRECT_HTTPS | "on"
|
| REDIRECT_UNIQUE_ID | "aSuhtIASbgc1y32QuIOLCwAAAAk"
|
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1764467125.0091
|
| REQUEST_TIME | 1764467125
|
| argv | [] |
| argc | 0
|
| APP_NAME | "Larite"
|
| APP_ENV | "development"
|
| APP_URL | "http://localhost"
|
| LOG_CHANNEL | "daily"
|
| DB_CONNECTION | "mysql"
|
| DB_HOST | "localhost"
|
| DB_PORT | "3306"
|
| DB_DATABASE | "Larite"
|
| DB_USERNAME | "root"
|
| DB_PASSWORD | "" |
| MAIL_DRIVER | "smtp"
|
| MAIL_HOST | "smtp.gmail.com"
|
| MAIL_PORT | "587"
|
| MAIL_USERNAME | "example@gmail.com"
|
| MAIL_PASSWORD | "password"
|
| MAIL_ENCRYPTION | "tls"
|
| MAIL_FROM_ADDRESS | "no-reply@gmail.com"
|
| MAIL_FROM_NAME | "Larite"
|
| AUTH_TABLE | "users"
|
| PLAIN_BLADE | "true"
|
| Key | Value |
| USER | "larite"
|
| HOME | "/home/larite"
|
| SCRIPT_NAME | "/index.php"
|
| REQUEST_URI | "/docs"
|
| QUERY_STRING | "" |
| REQUEST_METHOD | "GET"
|
| SERVER_PROTOCOL | "HTTP/1.1"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| REDIRECT_URL | "/docs"
|
| REMOTE_PORT | "41172"
|
| SCRIPT_FILENAME | "/home/larite/public_html/index.php"
|
| SERVER_ADMIN | "webmaster@larite.dev"
|
| CONTEXT_DOCUMENT_ROOT | "/home/larite/public_html"
|
| CONTEXT_PREFIX | "" |
| REQUEST_SCHEME | "https"
|
| DOCUMENT_ROOT | "/home/larite/public_html"
|
| REMOTE_ADDR | "216.73.216.164"
|
| SERVER_PORT | "443"
|
| SERVER_ADDR | "15.235.125.139"
|
| SERVER_NAME | "larite.dev"
|
| SERVER_SOFTWARE | "Apache"
|
| SERVER_SIGNATURE | "" |
| PATH | "/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
|
| HTTP_HOST | "larite.dev"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| HTTP_ACCEPT | "*/*"
|
| proxy-nokeepalive | "1"
|
| SSL_TLS_SNI | "larite.dev"
|
| HTTPS | "on"
|
| UNIQUE_ID | "aSuhtIASbgc1y32QuIOLCwAAAAk"
|
| REDIRECT_STATUS | "200"
|
| REDIRECT_SSL_TLS_SNI | "larite.dev"
|
| REDIRECT_HTTPS | "on"
|
| REDIRECT_UNIQUE_ID | "aSuhtIASbgc1y32QuIOLCwAAAAk"
|
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1764467125.0091
|
| REQUEST_TIME | 1764467125
|
| argv | [] |
| argc | 0
|
| APP_NAME | "Larite"
|
| APP_ENV | "development"
|
| APP_URL | "http://localhost"
|
| LOG_CHANNEL | "daily"
|
| DB_CONNECTION | "mysql"
|
| DB_HOST | "localhost"
|
| DB_PORT | "3306"
|
| DB_DATABASE | "Larite"
|
| DB_USERNAME | "root"
|
| DB_PASSWORD | "" |
| MAIL_DRIVER | "smtp"
|
| MAIL_HOST | "smtp.gmail.com"
|
| MAIL_PORT | "587"
|
| MAIL_USERNAME | "example@gmail.com"
|
| MAIL_PASSWORD | "password"
|
| MAIL_ENCRYPTION | "tls"
|
| MAIL_FROM_ADDRESS | "no-reply@gmail.com"
|
| MAIL_FROM_NAME | "Larite"
|
| AUTH_TABLE | "users"
|
| PLAIN_BLADE | "true"
|
| Key | Value |
| APP_NAME | "Larite"
|
| APP_ENV | "development"
|
| APP_URL | "http://localhost"
|
| LOG_CHANNEL | "daily"
|
| DB_CONNECTION | "mysql"
|
| DB_HOST | "localhost"
|
| DB_PORT | "3306"
|
| DB_DATABASE | "Larite"
|
| DB_USERNAME | "root"
|
| DB_PASSWORD | "" |
| MAIL_DRIVER | "smtp"
|
| MAIL_HOST | "smtp.gmail.com"
|
| MAIL_PORT | "587"
|
| MAIL_USERNAME | "example@gmail.com"
|
| MAIL_PASSWORD | "password"
|
| MAIL_ENCRYPTION | "tls"
|
| MAIL_FROM_ADDRESS | "no-reply@gmail.com"
|
| MAIL_FROM_NAME | "Larite"
|
| AUTH_TABLE | "users"
|
| PLAIN_BLADE | "true"
|