mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 23:52:14 +00:00
Simplified RouteController and RouteResource by moving common group-match code to parent method.
This commit is contained in:
@@ -88,7 +88,7 @@ class RouteController extends LoadableRoute implements IControllerRoute
|
||||
|
||||
public function matchRoute(string $url, Request $request): bool
|
||||
{
|
||||
if ($this->getGroup() !== null && $this->getGroup()->matchRoute($url, $request) === false) {
|
||||
if ($this->matchGroup($url, $request) === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user