public function OperationFactory::__construct in Drupal 10
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/Operations/OperationFactory.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationFactory::__construct()
- 9 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\OperationsCode
public function __construct(Composer $composer) {
$this->composer = $composer;
}