You are here

public function DrupalCoreComposer::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Generator/Util/DrupalCoreComposer.php \Drupal\Composer\Generator\Util\DrupalCoreComposer::__construct()
  2. 9 composer/Generator/Util/DrupalCoreComposer.php \Drupal\Composer\Generator\Util\DrupalCoreComposer::__construct()

DrupalCoreComposer constructor.

Parameters

array $composerJson: The composer.json data.

array $composerLock: The composer.lock data.

File

composer/Generator/Util/DrupalCoreComposer.php, line 35

Class

DrupalCoreComposer
Utilities for accessing composer.json data from drupal/drupal and drupal/core.

Namespace

Drupal\Composer\Generator\Util

Code

public function __construct(array $composerJson, array $composerLock) {
  $this->composerJson = $composerJson;
  $this->composerLock = $composerLock;
}