Sensio\Bundle\FrameworkExtraBundle\EventListener\CacheListener
The CacheListener class has the responsibility to modify the Response object when a controller uses the "@Cache" annotation.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class CacheListener
implements
EventSubscriberInterface
{
- // methods
- public void onKernelResponse()
- public static void getSubscribedEvents()
Hierarchy
Methods
public
- getSubscribedEvents()
- onKernelResponse() — Modifies the response to apply HTTP expiration header fields.