summaryrefslogtreecommitdiff
path: root/src/App.php
blob: 9b1edf98d4c6e9d71dbcb854759f8d48ee6c9477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace App;

use App\Router\Router;
use Symfony\Component\Dotenv\Dotenv;

class App
{
  public function __construct()
  {
    $dotenv = new Dotenv();
    $dotenv->load(dirname(__DIR__) . "/.env");
  }

  public function run(): void
  {
    Router::getInstance()->run()->send();
  }
}