Skip to content

Commit 98cd89e

Browse files
committed
helpers moved from including in files to composer.json
1 parent 9c25da7 commit 98cd89e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"autoload": {
99
"psr-4" : {
1010
"App\\" : "app/"
11-
}
11+
},
12+
"files": [
13+
"app/Helper/repository.php"
14+
]
1215
},
1316

1417
"scripts": {

public/index.php

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
'connection' => require_once "../config/connection.php"
1717
]);
1818

19-
// Helpers
20-
require_once "../app/Helper/repository.php";
21-
2219
if ($app->getContainer()->get('settings')['basic_auth']) {
2320
// Basic Authentication for all routes
2421
$basic_auth = new \App\Middleware\BasicAuth($auth['basic_auths']);

0 commit comments

Comments
 (0)