Method | Description | |
---|---|---|
mapRoute ( $args ) : Slim\Route | Add a route as per the parent method, additionally supporting the syntax "{controller class name}:{action method name}" as the last argument which will be converted to a closure that instantiates the controller (or gets from container) and then calls the method on it. |
Method | Description | |
---|---|---|
createControllerClosure ( string $name ) : closure | Create a closure that instantiates (or gets from container) and then calls the action method. |
protected createControllerClosure ( string $name ) : closure | ||
$name | string | controller class name and action method name separated by a colon |
return | closure |
public mapRoute ( $args ) : Slim\Route | ||
return | Slim\Route |