PHP Класс RKA\Slim

Наследование: extends Slim\Slim
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
createControllerClosure ( string $name ) : closure Create a closure that instantiates (or gets from container) and then calls the action method.

Описание методов

createControllerClosure() защищенный Метод

Also if the methods exist on the controller class, call setApp(), setRequest() and setResponse() passing in the appropriate object.
protected createControllerClosure ( string $name ) : closure
$name string controller class name and action method name separated by a colon
Результат closure

mapRoute() публичный Метод

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.
public mapRoute ( $args ) : Slim\Route
Результат Slim\Route