mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[BUGFIX] Bugfixes and optimisations
- Fixed support for multiple middlewares using array. - Fixed match and parameters-match not not being merged when used on group.
This commit is contained in:
@@ -58,6 +58,7 @@ class RouterBase {
|
||||
|
||||
$newPrefixes = $prefixes;
|
||||
$mergedSettings = array_merge($settings, $route->getMergeableSettings());
|
||||
|
||||
if($route->getPrefix()) {
|
||||
array_push($newPrefixes, rtrim($route->getPrefix(), '/'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user