load(); } catch (\Throwable $th) { trigger_error($th); } /* |-------------------------------------------------------------------------- | Load application paths |-------------------------------------------------------------------------- | | Decline static file requests back to the PHP built-in webserver | */ if (php_sapi_name() === 'cli-server') { $path = realpath(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); if (is_string($path) && __FILE__ !== $path && is_file($path)) { return false; } unset($path); } /* |-------------------------------------------------------------------------- | Run your Leaf MVC application |-------------------------------------------------------------------------- | | This line brings in all your routes and starts your application | */ \Leaf\Core::runApplication();