PHP 클래스 RKA\Slim

상속: extends Slim\Slim
파일 보기 프로젝트 열기: akrabat/rka-slim-controller 1 사용 예제들

공개 메소드들

메소드 설명
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