function Fixtures::getComposer

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::getComposer()
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::getComposer()
  3. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::getComposer()

Gets the Composer object.

Return value

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

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

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php, line 72

Class

Fixtures
Convenience class for creating fixtures.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold

Code

public function getComposer() {
    if (!$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.