Skip to content

Commit ccd3a6e

Browse files
committed
updated dependencies and changed config for database
1 parent b7adeec commit ccd3a6e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php": "^7.4 || ^8.0",
2525
"ext-json": "*",
2626
"flightphp/core": "^3.0",
27-
"flightphp/runway": "^0.2",
27+
"flightphp/runway": "^0.2 || ^1.0",
2828
"tracy/tracy": "^2.9"
2929
},
3030
"config": {
@@ -39,6 +39,6 @@
3939
]
4040
},
4141
"require-dev": {
42-
"flightphp/tracy-extensions": "^0.1.2"
42+
"flightphp/tracy-extensions": "^0.1 || ^0.2"
4343
}
4444
}

public/index.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@
7878
// uncomment the following line for SQLite
7979
// $dsn = sqlite:' . $config['database']['file_path'];
8080

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

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

0 commit comments

Comments
 (0)