PHP Class Imbo\EventListener\VarnishHashTwo

This event listener can be used to send HashTwo headers for Varnish.
Inheritance: implements Imbo\EventListener\ListenerInterface
Datei anzeigen Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
__construct ( array $params = null ) Class constructor
addHeader ( Imbo\EventManager\EventInterface $event ) Add the HashTwo header to the response
getSubscribedEvents ( )

Method Details

__construct() public method

Class constructor
public __construct ( array $params = null )
$params array Parameters for the event listener

addHeader() public method

Add the HashTwo header to the response
public addHeader ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

getSubscribedEvents() public static method

public static getSubscribedEvents ( )