function OperationFactory::__construct

Same name in other branches
  1. 9 composer/Plugin/Scaffold/Operations/OperationFactory.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationFactory::__construct()
  2. 10 composer/Plugin/Scaffold/Operations/OperationFactory.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationFactory::__construct()
  3. 11.x composer/Plugin/Scaffold/Operations/OperationFactory.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationFactory::__construct()

OperationFactory constructor.

Parameters

\Composer\Composer $composer: Reference to the 'Composer' object, since the Scaffold Operation Factory is also responsible for evaluating relative package paths as it creates scaffold operations.

File

composer/Plugin/Scaffold/Operations/OperationFactory.php, line 31

Class

OperationFactory
Create Scaffold operation objects based on provided metadata.

Namespace

Drupal\Composer\Plugin\Scaffold\Operations

Code

public function __construct(Composer $composer) {
    $this->composer = $composer;
}

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