You are here

public function ExtraPackage::mergeInto in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/wikimedia/composer-merge-plugin/src/Merge/ExtraPackage.php \Wikimedia\Composer\Merge\ExtraPackage::mergeInto()

Merge this package into a RootPackageInterface

Parameters

RootPackageInterface $root:

PluginState $state:

File

vendor/wikimedia/composer-merge-plugin/src/Merge/ExtraPackage.php, line 146

Class

ExtraPackage
Processing for a composer.json file that will be merged into a RootPackageInterface

Namespace

Wikimedia\Composer\Merge

Code

public function mergeInto(RootPackageInterface $root, PluginState $state) {
  $this
    ->addRepositories($root);
  $this
    ->mergeRequires('require', $root, $state);
  if ($state
    ->isDevMode()) {
    $this
      ->mergeRequires('require-dev', $root, $state);
  }
  $this
    ->mergePackageLinks('conflict', $root);
  $this
    ->mergePackageLinks('replace', $root);
  $this
    ->mergePackageLinks('provide', $root);
  $this
    ->mergeSuggests($root);
  $this
    ->mergeAutoload('autoload', $root);
  if ($state
    ->isDevMode()) {
    $this
      ->mergeAutoload('devAutoload', $root);
  }
  $this
    ->mergeExtra($root, $state);
}