public function UpgradeRectorForm::__construct in Upgrade Rector 8
Constructs a \Drupal\upgrade_status_rector\UpgradeStatusRectorForm.
Parameters
\Drupal\upgrade_rector\ProjectCollector $project_collector: The project collector service.
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key/value factory.
\Drupal\upgrade_rector\RectorProcessor $rector_processor: The rector processor.
File
- src/
Form/ UpgradeRectorForm.php, line 60
Class
Namespace
Drupal\upgrade_rector\FormCode
public function __construct(ProjectCollector $project_collector, KeyValueFactoryInterface $key_value_factory, RectorProcessor $rector_processor) {
$this->projectCollector = $project_collector;
$this->rectorResults = $key_value_factory
->get('upgrade_status_rector_results');
$this->rectorProcessor = $rector_processor;
}