function FixturesBase::getComposer

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Composer/Plugin/FixturesBase.php \Drupal\Tests\Composer\Plugin\FixturesBase::getComposer()

Gets the Composer object.

Return value

\Composer\Composer The main Composer object, needed by the scaffold Handler, etc.

1 call to FixturesBase::getComposer()
Fixtures::runScaffold in core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php
Runs the scaffold operation.

File

core/tests/Drupal/Tests/Composer/Plugin/FixturesBase.php, line 70

Class

FixturesBase
Base class for fixtures to test composer plugins.

Namespace

Drupal\Tests\Composer\Plugin

Code

public function getComposer() : Composer {
  if (!isset($this->composer)) {
    $this->composer = Factory::create($this->io(), NULL, TRUE);
  }
  return $this->composer;
}

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