PHP 클래스 CapMousse\ReactRestify\Routing\Route

상속: extends CapMousse\ReactRestify\Evenement\EventEmitter
파일 보기 프로젝트 열기: capmousse/react-restify

공개 프로퍼티들

프로퍼티 타입 설명
$action Callable Route action
$method String Route method type
$parsedRoute String Regexp ready route

공개 메소드들

메소드 설명
__construct ( String $method, String $uri, Callable $action )
after ( Callable $callback ) : Void Helper to listing to after event
isParsed ( ) : boolean Check if uri is parsed
parse ( ) : void Parse route uri
run ( Request $request, CapMousse\ReactRestify\Http\Response $response, Callable $next ) : Void Run the current route
where ( String $param, String $filter ) : void Create a new filter for current route

메소드 상세

__construct() 공개 메소드

public __construct ( String $method, String $uri, Callable $action )
$method String
$uri String
$action Callable

after() 공개 메소드

Helper to listing to after event
public after ( Callable $callback ) : Void
$callback Callable
리턴 Void

isParsed() 공개 메소드

Check if uri is parsed
public isParsed ( ) : boolean
리턴 boolean

parse() 공개 메소드

Parse route uri
public parse ( ) : void
리턴 void

run() 공개 메소드

Run the current route
public run ( Request $request, CapMousse\ReactRestify\Http\Response $response, Callable $next ) : Void
$request CapMousse\ReactRestify\Http\Request
$response CapMousse\ReactRestify\Http\Response
$next Callable
리턴 Void

where() 공개 메소드

Create a new filter for current route
public where ( String $param, String $filter ) : void
$param String parameter to filter
$filter String regexp to execute
리턴 void

프로퍼티 상세

$action 공개적으로 프로퍼티

Route action
public Callable $action
리턴 Callable

$method 공개적으로 프로퍼티

Route method type
public String $method
리턴 String

$parsedRoute 공개적으로 프로퍼티

Regexp ready route
public String $parsedRoute
리턴 String