public static string $ROOT_DIR;
class Application{ public static string $ROOT_DIR; public Router $router; public Request $request; public Response $response; public function __construct($rootPath) { self::$ROOT_DIR = $rootPath; $this->router = new Router(); $this->request = new Request($this->router); $this->response = new Response(); } public function run(){ echo $this->router->resolve(); } }
class Router{ public Request $request; (syntax error, unexpected request)) protected array $routes = []; public function __construct(\app\core\Request $request) { $this->request = $request; }
static
string
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)