PHP 클래스 Ergo\Middleware

또한 보기: Ergo\Application::middleware()
파일 보기 프로젝트 열기: 99designs/ergo

보호된 프로퍼티들

프로퍼티 타입 설명
$application
$controller

공개 메소드들

메소드 설명
__construct ( $controller, $application ) Constructor
execute ( $request ) : Ergo\Http\Response Handles a {@link Ergo\Http\Request}, returns an {@link Ergo\Http\Response}

보호된 메소드들

메소드 설명
filterResponse ( $request, $type = "text/*", $callback ) Helper to modify the response via a callback

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $controller, $application )

execute() 공개 메소드

Handles a {@link Ergo\Http\Request}, returns an {@link Ergo\Http\Response}
public execute ( $request ) : Ergo\Http\Response
리턴 Ergo\Http\Response

filterResponse() 보호된 메소드

Helper to modify the response via a callback
protected filterResponse ( $request, $type = "text/*", $callback )

프로퍼티 상세

$application 보호되어 있는 프로퍼티

protected $application

$controller 보호되어 있는 프로퍼티

protected $controller