EventDataCollector

class EventDataCollector extends DataCollector implements LateDataCollectorInterface EventDataCollector. Methods serialize() from DataCollector unserialize($data) from DataCollector __construct(EventDispatcherInterface $dispatcher = null) collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. lateCollect() Collects data as late as possible. setCalledListeners(array $listeners) Sets the called

EventDataCollector::collect()

collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. Parameters Request $request A Request instance Response $response A Response instance Exception $exception An Exception instance

Event::isPropagationStopped()

bool isPropagationStopped() Returns whether further event listeners should be triggered. Return Value bool Whether propagation was already stopped for this event See also Event::stopPropagation()

EsiResponseCacheStrategyInterface deprecated

interface EsiResponseCacheStrategyInterface implements ResponseCacheStrategyInterface deprecated since version 2.6, to be removed in 3.0. Use ResponseCacheStrategyInterface instead. ResponseCacheStrategyInterface implementations know how to compute the Response cache HTTP header based on the different response cache headers. Methods add(Response $response) Adds a Response. from ResponseCacheStrategyInterface update(Response $response) Updates the Response HTTP headers based on th

Event

class Event Event is the base class for classes containing event data. This class contains no event data. It is used by events that do not pass state information to an event handler when an event is raised. You can call the method stopPropagation() to abort the execution of further listeners in your event listener. Methods bool isPropagationStopped() Returns whether further event listeners should be triggered. stopPropagation() Stops the propagation of the event to further event lis

EsiResponseCacheStrategy deprecated

class EsiResponseCacheStrategy extends ResponseCacheStrategy implements EsiResponseCacheStrategyInterface deprecated since version 2.6, to be removed in 3.0. Use ResponseCacheStrategy instead EsiResponseCacheStrategy knows how to compute the Response cache HTTP header based on the different ESI response cache headers. This implementation changes the master response TTL to the smallest TTL received or force validation if one of the ESI has validation cache strategy. Methods add(Respon

EsiListener deprecated

class EsiListener extends SurrogateListener deprecated since version 2.6, to be removed in 3.0. Use SurrogateListener instead EsiListener adds a Surrogate-Control HTTP header when the Response needs to be parsed for ESI. Methods __construct(SurrogateInterface $surrogate = null) Constructor. from SurrogateListener onKernelResponse(FilterResponseEvent $event) Filters the Response. from SurrogateListener static array getSubscribedEvents() Returns an array of event names this sub

Esi::renderIncludeTag()

string renderIncludeTag(string $uri, string $alt = null, bool $ignoreErrors = true, string $comment = '') Renders an ESI tag. Parameters string $uri A URI string $alt An alternate URI bool $ignoreErrors Whether to ignore errors or not string $comment A comment to add as an esi:include tag Return Value string

Esi::process()

Response process(Request $request, Response $response) Replaces a Response ESI tags with the included resource content. Parameters Request $request A Request instance Response $response A Response instance Return Value Response

EsiFragmentRenderer

class EsiFragmentRenderer extends AbstractSurrogateFragmentRenderer Implements the ESI rendering strategy. Methods setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. from RoutableFragmentRenderer __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null) Constructor. from AbstractSurrogateFragmentRenderer Response render(string|ControllerReference $uri, Request $request, array $opti