Skip to content

Commit

Permalink
updated dependencies and fixed db service issue
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Sep 27, 2024
1 parent 6c788e1 commit 8f8a8b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
// uncomment the following line for SQLite
// $dsn = 'sqlite:' . $config['database']['file_path'];

// Uncomment the below lines if you want to add a Flight::db() service
// In development, you'll want the class that captures the queries for you. In production, not so much.
$pdoClass = Debugger::$showBar === true ? PdoQueryCapture::class : PdoWrapper::class;
$app->register('db', $pdoClass, [ $dsn, $config['database']['user'] ?? null, $config['database']['password'] ?? null ]);
// $pdoClass = Debugger::$showBar === true ? PdoQueryCapture::class : PdoWrapper::class;
// $app->register('db', $pdoClass, [ $dsn, $config['database']['user'] ?? null, $config['database']['password'] ?? null ]);

// Got google oauth stuff? You could register that here
// $app->register('google_oauth', Google_Client::class, [ $config['google_oauth'] ]);
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"php": "^7.4 || ^8.0",
"ext-json": "*",
"flightphp/core": "^3.0",
"flightphp/runway": "^0.2",
"flightphp/runway": "^1.1",
"tracy/tracy": "^2.9"
},
"config": {
Expand All @@ -42,6 +42,6 @@
]
},
"require-dev": {
"flightphp/tracy-extensions": "^0.1"
"flightphp/tracy-extensions": "^0.1 || ^0.2"
}
}

0 comments on commit 8f8a8b5

Please sign in to comment.