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

namespace App;

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();
  }
}