function RequireEventTrait::__construct
Constructs the object.
Parameters
\Drupal\package_manager\StageBase $stage: 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/ RequireEventTrait.php, line 44
Class
- RequireEventTrait
- Common methods for pre- and post-require events.
Namespace
Drupal\package_manager\EventCode
public function __construct(StageBase $stage, array $runtime_packages, array $dev_packages = []) {
$this->runtimePackages = $runtime_packages;
$this->devPackages = $dev_packages;
parent::__construct($stage);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.