class QueueProcessor (View source)

Properties

protected HtmlInjector $injector

Methods

__construct(HtmlInjector $injector)

No description

Response
guardResponse(Response $response, callable $process)

No description

void
process(Response $response, Request $request, Collection $queue, CacheInterface $cache, string $zone)

No description

string
pregCallback(array $c)

Callback method to identify comments and store them in the matchedComments array.

Details

__construct(HtmlInjector $injector)

Parameters

HtmlInjector $injector

Response guardResponse(Response $response, callable $process)

Parameters

Response $response
callable $process

Return Value

Response

void process(Response $response, Request $request, Collection $queue, CacheInterface $cache, string $zone)

Parameters

Response $response
Request $request
Collection $queue
CacheInterface $cache
string $zone

Return Value

void

string pregCallback(array $c)

Callback method to identify comments and store them in the matchedComments array.

These will be put back after the replacements on the HTML are finished.

Parameters

array $c

Return Value

string