Skip to content

Commit

Permalink
added runway and other details
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Apr 5, 2024
1 parent 82f70a1 commit 649e59e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .runway-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"index_root": "public\/index.php"
}
2 changes: 2 additions & 0 deletions app/config/config_sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
if(empty($app)) {
$app = Flight::app();
}
// if you want to load classes that have underscores in them, comment out the following line
// Loader::setV2ClassLoading(false);
$app->path(__DIR__ . $ds . '..' . $ds . '..');
$app->set('flight.base_url', '/'); // if this is in a subdirectory, you'll need to change this
$app->set('flight.case_sensitive', false); // if you want case sensitive routes, set this to true
Expand Down
2 changes: 1 addition & 1 deletion app/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use flight\database\PdoWrapper;

/**
* @var array $config
* @var array $config This comes from the returned array at the bottom of the config.php file
* @var Engine $app
*/
$dsn = 'mysql:host=' . $config['database']['host'] . ';dbname=' . $config['database']['dbname'] . ';charset=utf8mb4';
Expand Down
16 changes: 10 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@
"restapi",
"simple",
"easy",
"lite"
"lite",
"boilerplate",
"skeleton"
],
"homepage": "https://flightphp.com",
"homepage": "https://docs.flightphp.com",
"license": "MIT",
"authors": [
{
"name": "n0nag0n",
"email": "[email protected]"
"email": "[email protected]",
"role": "lead"
}
],
"require": {
"php": "^7.4 || ^8.0",
"ext-json": "*",
"flightphp/core": "^3.0"
"flightphp/core": "^3.0",
"flightphp/runway": "^0.1.0",
"tracy/tracy": "^2.9"
},
"config": {
"process-timeout": 0,
Expand All @@ -30,7 +35,6 @@
"start": "php -S localhost:8000 -t public"
},
"require-dev": {
"flightphp/tracy-extensions": "^0.1.2",
"tracy/tracy": "^2.9"
"flightphp/tracy-extensions": "^0.1.2"
}
}
1 change: 1 addition & 0 deletions runway

0 comments on commit 649e59e

Please sign in to comment.