PHP 클래스 Bolt\Controller\ConfigurableBase

저자: Carson Full ([email protected])
상속: extends Base
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 메소드들

메소드 설명
after ( Request $request, Response $response )
before ( Request $request )
connect ( Silex\Application $app )

보호된 메소드들

메소드 설명
addRoute ( Silex\ControllerCollection $ctr, $name, array $config )
addRoutes ( Silex\ControllerCollection $c )
getConfigurationRoutes ( ) : array Return routes (as arrays) that will be converted to route objects.
resolveAfter ( array | string | null $after ) : Closure Returns a closure that will resolve the middleware callback to call on kernel response and call it.
resolveBefore ( array | string | null $before ) : Closure Returns a closure that will resolve the middleware callback to call on kernel request and call it.
resolveMiddleware ( array | string | null $callback ) : Closure Returns a closure that will resolve the class to use in middleware callback if one isn't specified

메소드 상세

addRoute() 보호된 메소드

protected addRoute ( Silex\ControllerCollection $ctr, $name, array $config )
$ctr Silex\ControllerCollection
$config array

addRoutes() 보호된 메소드

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

after() 공개 메소드

public after ( Request $request, Response $response )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

before() 공개 메소드

public before ( Request $request )
$request Symfony\Component\HttpFoundation\Request

connect() 공개 메소드

public connect ( Silex\Application $app )
$app Silex\Application

getConfigurationRoutes() 추상적인 보호된 메소드

Return routes (as arrays) that will be converted to route objects.
abstract protected getConfigurationRoutes ( ) : array
리턴 array

resolveAfter() 보호된 메소드

Returns a closure that will resolve the middleware callback to call on kernel response and call it.
protected resolveAfter ( array | string | null $after ) : Closure
$after array | string | null
리턴 Closure

resolveBefore() 보호된 메소드

Returns a closure that will resolve the middleware callback to call on kernel request and call it.
protected resolveBefore ( array | string | null $before ) : Closure
$before array | string | null
리턴 Closure

resolveMiddleware() 보호된 메소드

Returns a closure that will resolve the class to use in middleware callback if one isn't specified
protected resolveMiddleware ( array | string | null $callback ) : Closure
$callback array | string | null
리턴 Closure Invoke to get middleware callback