You are here

public function RectorResultController::__construct in Upgrade Rector 8

Constructs a \Drupal\upgrade_rector\Controller\RectorResultController.

Parameters

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key/value factory.

\Drupal\upgrade_rector\RectorProcessor $rector_processor: The rector processor.

\Drupal\upgrade_rector\ProjectCollector $project_collector: The project collector service.

File

src/Controller/RectorResultController.php, line 45

Class

RectorResultController

Namespace

Drupal\upgrade_rector\Controller

Code

public function __construct(KeyValueFactoryInterface $key_value_factory, RectorProcessor $rector_processor, ProjectCollector $project_collector) {
  $this->rectorResults = $key_value_factory
    ->get('upgrade_status_rector_results');
  $this->rectorProcessor = $rector_processor;
  $this->projectCollector = $project_collector;
}