function OperationFactory::__construct
Same name in other branches
- 9 composer/Plugin/Scaffold/Operations/OperationFactory.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationFactory::__construct()
- 8.9.x composer/Plugin/Scaffold/Operations/OperationFactory.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationFactory::__construct()
- 10 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.