Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PreFileDownloadEvent.php

function PreFileDownloadEvent::__construct

Constructor.

Parameters

string $name The event name:

mixed $context:

non-empty-string $processedUrl:

Overrides Event::__construct

File

vendor/composer/composer/src/Composer/Plugin/PreFileDownloadEvent.php, line 62

Class

PreFileDownloadEvent
The pre file download event.

Namespace

Composer\Plugin

Code

public function __construct(string $name, HttpDownloader $httpDownloader, string $processedUrl, string $type, $context = null) {
    parent::__construct($name);
    $this->httpDownloader = $httpDownloader;
    $this->processedUrl = $processedUrl;
    $this->type = $type;
    $this->context = $context;
}
RSS feed
Powered by Drupal