PHP Class Ergo\Routing\FilteredController

Inheritance: extends AbstractController
Mostrar archivo Open project: 99designs/ergo

Public Methods

Method Description
__construct ( $controller ) Constructor
addRequestFilter ( $filter ) Adds an callback for processing the request before it is processed, must return a request
addResponseFilter ( $filter ) Adds an callback for processing the response after it is processed, must return a response
execute ( $request ) * (non-phpdoc)

Protected Methods

Method Description
filter ( $request ) : response Filter a request and response and return the response

Private Methods

Method Description
_applyFilter ( $chain, $object ) : object Apply a chain of filters to an object

Method Details

__construct() public method

Constructor
public __construct ( $controller )

addRequestFilter() public method

Adds an callback for processing the request before it is processed, must return a request
public addRequestFilter ( $filter )

addResponseFilter() public method

Adds an callback for processing the response after it is processed, must return a response
public addResponseFilter ( $filter )

execute() public method

* (non-phpdoc)
See also: Controller::execute()
public execute ( $request )

filter() protected method

Filter a request and response and return the response
protected filter ( $request ) : response
return response