Definition at line 19 of file Routable.php.
◆ add()
Slim\Routable::add |
( |
|
$callable | ) |
|
Prepend middleware to the middleware collection.
- Parameters
-
callable | string | $callable | The callback routine |
- Returns
- static
Definition at line 91 of file Routable.php.
93 $this->middleware[] =
new DeferredCallable(
$callable, $this->container);
◆ getMiddleware()
Slim\Routable::getMiddleware |
( |
| ) |
|
Get the middleware registered for the group.
- Returns
- callable[]
Definition at line 56 of file Routable.php.
◆ getPattern()
Slim\Routable::getPattern |
( |
| ) |
|
Get the route pattern.
- Returns
- string
Definition at line 66 of file Routable.php.
◆ setContainer()
Set container for use with resolveCallable.
- Parameters
-
ContainerInterface | $container | |
- Returns
- self
Definition at line 78 of file Routable.php.
References $container.
◆ setPattern()
Slim\Routable::setPattern |
( |
|
$newPattern | ) |
|
Set the route pattern.
- Parameters
-
Definition at line 102 of file Routable.php.
104 $this->pattern = $newPattern;
◆ $callable
◆ $container
Slim\Routable::$container |
|
protected |
◆ $middleware
Slim\Routable::$middleware = [] |
|
protected |
◆ $pattern
The documentation for this class was generated from the following file: