summaryrefslogtreecommitdiff
path: root/src/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.php')
-rw-r--r--src/App.php19
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();
+ }
+}