mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 08:32:18 +00:00
Merge branch 'v4-development' into feature-default-namespace
This commit is contained in:
@@ -78,7 +78,6 @@ abstract class Route implements IRoute
|
||||
$router->debug('Executing callback');
|
||||
|
||||
/* When the callback is a function */
|
||||
|
||||
return $router->getClassLoader()->loadClosure($callback, $parameters);
|
||||
}
|
||||
|
||||
@@ -251,7 +250,7 @@ abstract class Route implements IRoute
|
||||
/**
|
||||
* Set callback
|
||||
*
|
||||
* @param string|array\Closure $callback
|
||||
* @param string|array|\Closure $callback
|
||||
* @return static
|
||||
*/
|
||||
public function setCallback($callback): IRoute
|
||||
|
||||
Reference in New Issue
Block a user