diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2025-08-10 10:46:41 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2025-08-10 10:46:41 +0200 |
| commit | c14579871fa1241713128a2d0d5514af004e3371 (patch) | |
| tree | 6b28c42958650d94c9aa1947a0b5c32eb869d89f /src/App.php | |
initial commit
Diffstat (limited to 'src/App.php')
| -rw-r--r-- | src/App.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/App.php b/src/App.php new file mode 100644 index 0000000..4c67f76 --- /dev/null +++ b/src/App.php @@ -0,0 +1,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(); + } +} |
