PHP Class CustomEventListener, imbo

(c) Christer Edvartsen For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Inheritance: implements Imbo\EventListener\ListenerInterface
ファイルを表示 Open project: imbo/imbo

Public Methods

Method Description
__construct ( array $params ) Class constructor
getIndex ( Imbo\EventManager\EventInterface $event ) Set a couple of headers
getSubscribedEvents ( )
getUser ( Imbo\EventManager\EventInterface $event ) Set a custom header containing the current user

Method Details

__construct() public method

Class constructor
public __construct ( array $params )
$params array

getIndex() public method

Set a couple of headers
public getIndex ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

getUser() public method

Set a custom header containing the current user
public getUser ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event