You are here

public function OperationFactory::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}