mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 04:02:14 +00:00
[FEATURE] Added support for class hinting on routes as requested by #491
This commit is contained in:
@@ -110,7 +110,7 @@ class RouteController extends LoadableRoute implements IControllerRoute
|
||||
$this->parameters = \array_slice($path, 1);
|
||||
|
||||
// Set callback
|
||||
$this->setCallback($this->controller . '@' . $this->method);
|
||||
$this->setCallback([$this->controller, $this->method]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user