PHP Class Sulu\Component\HttpCache\EventSubscriber\FlushSubscriber

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Mostra file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\HttpCache\HandlerFlushInterface $handler )
getSubscribedEvents ( )
onTerminate ( Symfony\Component\HttpKernel\Event\PostResponseEvent $event ) Flush the cache on kernel terminate.

Method Details

__construct() public method

public __construct ( Sulu\Component\HttpCache\HandlerFlushInterface $handler )
$handler Sulu\Component\HttpCache\HandlerFlushInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onTerminate() public method

Flush the cache on kernel terminate.
public onTerminate ( Symfony\Component\HttpKernel\Event\PostResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\PostResponseEvent