You are here

public function BoostResponseSubscriber::__construct in Boost 8

Constructs a HtmlResponseSubscriber object.

Parameters

\Drupal\Core\Render\AttachmentsResponseProcessorInterface $html_response_attachments_processor: The HTML response attachments processor service.

\Drupal\Core\Session\AccountProxy $account:

File

src/EventSubscriber/BoostResponseSubscriber.php, line 46
Contains Drupal\boost\EventSubscriber\BoostResponseSubscriber

Class

BoostResponseSubscriber
Class BoostResponseSubscriber.

Namespace

Drupal\boost\EventSubscriber

Code

public function __construct(AttachmentsResponseProcessorInterface $html_response_attachments_processor, AccountProxy $account) {
  $this->boostCache = new BoostCache();
  $this->htmlResponseAttachmentsProcessor = $html_response_attachments_processor;
  $this->account = $account;
}