21 lines
457 B
PHP
21 lines
457 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
date_default_timezone_set('Europe/Samara');
|
|
|
|
use App\Core\Router;
|
|
use Dotenv\Dotenv;
|
|
|
|
session_start();
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
require_once __DIR__ . '/../app/Helpers/format.php';
|
|
|
|
$dotenv = Dotenv::createImmutable(dirname(__DIR__));
|
|
$dotenv->safeLoad();
|
|
|
|
$router = new Router();
|
|
|
|
require_once __DIR__ . '/../routes/web.php';
|
|
|
|
$router->dispatch($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']); |