File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ class Application
1313 public File $ file ;
1414 public DB $ db ;
1515 public static Application $ app ;
16- public function __construct ($ rootPath )
16+ public function __construct ()
1717 {
1818 $ dotenv = Dotenv::createImmutable (dirname (__DIR__ ));
1919 $ dotenv ->load ();
20- self ::$ ROOT_DIR = dirname ($ rootPath );
20+ self ::$ ROOT_DIR = dirname (__DIR__ );
2121 self ::$ app = $ this ;
2222 $ this ->request = new Request ();
2323 $ this ->response = new Response ();
Original file line number Diff line number Diff line change 33use app \core \Application ;
44
55require_once __DIR__ . "/../vendor/autoload.php " ;
6- $ app = new Application (__DIR__ );
6+ $ app = new Application ();
77$ router = $ app ->router ;
88//Routes
99$ router ->post ('/api ' , 'Api ' );
You can’t perform that action at this time.
0 commit comments