Definition at line 19 of file RouteGroup.php.
◆ __construct()
Slim\RouteGroup::__construct |
( |
|
$pattern, |
|
|
|
$callable |
|
) |
| |
Create a new RouteGroup.
- Parameters
-
string | $pattern | The pattern prefix for the group |
callable | $callable | The group callable |
Definition at line 27 of file RouteGroup.php.
◆ __invoke()
Slim\RouteGroup::__invoke |
( |
App |
$app = null | ) |
|
Invoke the group to register any Routable objects within it.
- Parameters
-
App | $app | The App instance to bind/pass to the group callable |
Definition at line 38 of file RouteGroup.php.
39 {
40 $callable = $this->resolveCallable($this->callable);
41 if (
$callable instanceof Closure && $app !==
null) {
43 }
44
46 }
The documentation for this class was generated from the following file: