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:
parent
b51dedd7e7
commit
0e5cb88888
7 changed files with 401 additions and 209 deletions
|
@ -165,4 +165,12 @@ return [
|
|||
[Dice::INSTANCE => '$basepath'],
|
||||
],
|
||||
],
|
||||
App\Router::class => [
|
||||
'constructParams' => [
|
||||
$_SERVER, null
|
||||
],
|
||||
'call' => [
|
||||
['addRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue