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

Breadcrumb

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

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\Event

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal