Skip to content

Commit

Permalink
Updated library versions and more
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFun123 committed Jul 24, 2022
1 parent 553ebd2 commit 7dbcec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ class App extends WebApplication {
self::setInstance( (new self())->start($environment) );
}

public function init(){
public function init() : void {
$this->getConfig()
->loadENVFile(".env");

// A ulole-framework helper for UloleORM::database("main", new Database(...))
$this->initDatabase(/*Config prefix*/ "database", "main");
UloleORM::register("user", User::class);
UloleORM::register(User::class);
}

public function run() {
public function run() : void {
$this->getRouter()
->get("/user/(\d+)", function($req, $res, int $userId){
$res->json([
Expand Down

0 comments on commit 7dbcec4

Please sign in to comment.