You are here

public function DfpHtmlResponseAttachmentsProcessor::__construct in Doubleclick for Publishers (DFP) 8

Constructs a DfpResponseAttachmentsProcessor object.

Parameters

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

\Drupal\Core\Asset\AssetResolverInterface $asset_resolver: An asset resolver.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\Core\Asset\AssetCollectionRendererInterface $css_collection_renderer: The CSS asset collection renderer.

\Drupal\Core\Asset\AssetCollectionRendererInterface $js_collection_renderer: The JS asset collection renderer.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

Overrides HtmlResponseAttachmentsProcessor::__construct

File

src/DfpHtmlResponseAttachmentsProcessor.php, line 73
Contains \Drupal\dfp\DfpResponseAttachmentsProcessor.

Class

DfpHtmlResponseAttachmentsProcessor
Processes attachments of HTML responses with Dfp slot attachments.

Namespace

Drupal\dfp

Code

public function __construct(AttachmentsResponseProcessorInterface $html_response_attachments_processor, TokenInterface $token, AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, AssetCollectionRendererInterface $css_collection_renderer, AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack, RendererInterface $renderer, ModuleHandlerInterface $module_handler) {
  $this->htmlResponseAttachmentsProcessor = $html_response_attachments_processor;
  $this->configFactory = $config_factory;
  $this->token = $token;
  parent::__construct($asset_resolver, $config_factory, $css_collection_renderer, $js_collection_renderer, $request_stack, $renderer, $module_handler);
}