first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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']);
|
||||
Reference in New Issue
Block a user