ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Slim\Routable Class Reference
+ Inheritance diagram for Slim\Routable:
+ Collaboration diagram for Slim\Routable:

Public Member Functions

 getMiddleware ()
 Get the middleware registered for the group. More...
 
 getPattern ()
 Get the route pattern. More...
 
 setContainer (ContainerInterface $container)
 Set container for use with resolveCallable. More...
 
 add ($callable)
 Prepend middleware to the middleware collection. More...
 
 setPattern ($newPattern)
 Set the route pattern. More...
 

Protected Attributes

 $callable
 
 $container
 
 $middleware = []
 
 $pattern
 

Detailed Description

Definition at line 19 of file Routable.php.

Member Function Documentation

◆ add()

Slim\Routable::add (   $callable)

Prepend middleware to the middleware collection.

Parameters
callable | string$callableThe callback routine
Returns
static

Definition at line 91 of file Routable.php.

92  {
93  $this->middleware[] = new DeferredCallable($callable, $this->container);
94  return $this;
95  }

◆ getMiddleware()

Slim\Routable::getMiddleware ( )

Get the middleware registered for the group.

Returns
callable[]

Definition at line 56 of file Routable.php.

57  {
58  return $this->middleware;
59  }

◆ getPattern()

Slim\Routable::getPattern ( )

Get the route pattern.

Returns
string

Definition at line 66 of file Routable.php.

67  {
68  return $this->pattern;
69  }

◆ setContainer()

Slim\Routable::setContainer ( ContainerInterface  $container)

Set container for use with resolveCallable.

Parameters
ContainerInterface$container
Returns
self

Definition at line 78 of file Routable.php.

References $container.

79  {
80  $this->container = $container;
81  return $this;
82  }

◆ setPattern()

Slim\Routable::setPattern (   $newPattern)

Set the route pattern.

Parameters
string$newPattern

Definition at line 102 of file Routable.php.

103  {
104  $this->pattern = $newPattern;
105  }

Field Documentation

◆ $callable

Slim\Routable::$callable
protected

Definition at line 28 of file Routable.php.

◆ $container

Slim\Routable::$container
protected

Definition at line 35 of file Routable.php.

◆ $middleware

Slim\Routable::$middleware = []
protected

Definition at line 42 of file Routable.php.

◆ $pattern

Slim\Routable::$pattern
protected

Definition at line 49 of file Routable.php.


The documentation for this class was generated from the following file: