Méthode | 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. |
Méthode | 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 |
Résultat | closure |
public mapRoute ( $args ) : Slim\Route | ||
Résultat | Slim\Route |