PHP Класс Bolt\Controller\ConfigurableBase

Автор: Carson Full ([email protected])
Наследование: extends Base
Показать файл Открыть проект Примеры использования класса

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

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