1
1
Fork 0

Add router config

- Introduce route.config.php structure
- Adding config loader for routes
- Adapt Module class (separation of duties)
- Add tests
This commit is contained in:
Philipp Holzer 2019-09-26 21:18:01 +02:00
commit 0e5cb88888
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
7 changed files with 401 additions and 209 deletions

View file

@ -165,4 +165,12 @@ return [
[Dice::INSTANCE => '$basepath'],
],
],
App\Router::class => [
'constructParams' => [
$_SERVER, null
],
'call' => [
['addRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_CALL],
],
],
];