function EventWithPackageListTrait::__construct

Constructs the object.

Parameters

\Drupal\package_manager\SandboxManagerBase $sandboxManager: The stage.

string[] $runtime_packages: The runtime (i.e., non-dev) packages to be required, in the form 'vendor/name:constraint'.

string[] $dev_packages: The dev packages to be required, in the form 'vendor/name:constraint'.

File

core/modules/package_manager/src/Event/EventWithPackageListTrait.php, line 44

Class

EventWithPackageListTrait
Common methods for pre- and post-require events.

Namespace

Drupal\package_manager\Event

Code

public function __construct(SandboxManagerBase $sandboxManager, array $runtime_packages, array $dev_packages = []) {
    $this->runtimePackages = $runtime_packages;
    $this->devPackages = $dev_packages;
    parent::__construct($sandboxManager);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.