router
router copied to clipboard
Unique namespace within a mount
Example:
$router->mount('/api/v1', function () use ($router) {
$router->setNamespace('Source\Api\v1');
$router->mount('/test', function () use ($router) {
$router->setNamespace('Source\Api\v1\Test');
});
});
LGTM if it works (did not test that yet), but please add some unit tests 😉 that would be icing on the cake 👍🏻
LGTM if it works (did not test that yet), but please add some unit tests 😉 that would be icing on the cake 👍🏻
https://github.com/bramus/router/pull/158/commits/75d5c6e13c836b3a961194ac6f48a794280639b0