/
arsen555
/
error5
Обзор
Документация
Войти
/
arsen555
/
error5
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
core/Application.php
34 строки
727 B
arsen555
upload files
18 фев 2026, 09:19
Верифицирован
18 фев 2026, 09:19
3024c15
Код
Авторство
О чём код?
<?php namespace PHPFramework; class Application { protected string $uri; public Request $request; public Response $response; public Router $router; public View $view; public static Application $app; public function __construct() { self::$app = $this; $this->uri = $_SERVER['REQUEST_URI']; $this->request = new Request($this->uri); $this->response = new Response(); $this->router = new Router($this->request, $this->response); $this->view = new View(LAYOUT); } public function run() { echo $this->router->dispatch(); } }