You are here

public function AjaxResponseAttachmentsProcessor::__construct in Content-Security-Policy 8

Constructs a AjaxResponseAttachmentsProcessor object.

Parameters

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

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

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

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

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

csp_extras/src/Ajax/AjaxResponseAttachmentsProcessor.php, line 74

Class

AjaxResponseAttachmentsProcessor
Processes attachments of AJAX responses.

Namespace

Drupal\csp_extras\Ajax

Code

public function __construct(AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, RequestStack $request_stack, ModuleHandlerInterface $module_handler, TimeInterface $time) {
  $this->assetResolver = $asset_resolver;
  $this->config = $config_factory
    ->get('system.performance');
  $this->requestStack = $request_stack;
  $this->moduleHandler = $module_handler;
  $this->time = $time;
}