Skip to content

Commit

Permalink
updated dependencies and changed config for database
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Sep 27, 2024
1 parent b7adeec commit ccd3a6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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": "^0.2 || ^1.0",
"tracy/tracy": "^2.9"
},
"config": {
Expand All @@ -39,6 +39,6 @@
]
},
"require-dev": {
"flightphp/tracy-extensions": "^0.1.2"
"flightphp/tracy-extensions": "^0.1 || ^0.2"
}
}
5 changes: 3 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@
// uncomment the following line for SQLite
// $dsn = sqlite:' . $config['database']['file_path'];

// Uncomment the following lines for 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 ]);

/*
* A route is really just a URL, but saying route makes you sound cooler.
Expand Down

0 comments on commit ccd3a6e

Please sign in to comment.