diff --git a/composer.json b/composer.json index 129ad54..08efe54 100644 --- a/composer.json +++ b/composer.json @@ -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": { @@ -39,6 +39,6 @@ ] }, "require-dev": { - "flightphp/tracy-extensions": "^0.1.2" + "flightphp/tracy-extensions": "^0.1 || ^0.2" } } diff --git a/public/index.php b/public/index.php index 2cf07f6..625082d 100644 --- a/public/index.php +++ b/public/index.php @@ -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.