Skip to content

Commit 2db72d0

Browse files
committed
ProjectCleanup: Move all files require to Composer files
1 parent 9497169 commit 2db72d0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

composer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
"autoload": {
66
"psr-4": {
77
"PH7\\ApiSimpleMenu\\": "src/"
8-
}
8+
},
9+
"files": [
10+
"src/helpers/headers.inc.php",
11+
"src/helpers/misc.inc.php",
12+
"src/config/config.inc.php",
13+
"src/config/database.inc.php",
14+
"src/Route/routes.php"
15+
]
916
},
1017
"authors": [
1118
{

index.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,3 @@
1010
$whoops = new WhoopsRun();
1111
$whoops->pushHandler(new WhoopsJsonResponseHandler);
1212
$whoops->register();
13-
14-
15-
require __DIR__ . '/src/helpers/headers.inc.php';
16-
require __DIR__ . '/src/helpers/misc.inc.php';
17-
require __DIR__ . '/src/config/config.inc.php';
18-
require __DIR__ . '/src/config/database.inc.php'; // TODO Could find sth cleaner
19-
require __DIR__ . '/src/Route/routes.php';

0 commit comments

Comments
 (0)