mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 22:32:13 +00:00
Development
- Using `$request->setRewriteRoute($route);` rewrite-callback now renders any added middlewares on the route. - Rewrite callbacks now sets default-namespace on route, if defined.
This commit is contained in:
@@ -372,4 +372,13 @@ class SimpleRouter
|
||||
return $route;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get default namespace
|
||||
* @return string
|
||||
*/
|
||||
public static function getDefaultNamespace()
|
||||
{
|
||||
return static::$defaultNamespace;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user