You are here

public function RectorProcessor::__construct in Upgrade Rector 8

Constructs a rector processor.

Parameters

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

\Psr\Log\LoggerInterface $logger: The logger.

\Drupal\Core\File\FileSystemInterface $file_system: File system service.

File

src/RectorProcessor.php, line 50

Class

RectorProcessor
Runs rector and processes rector results.

Namespace

Drupal\upgrade_rector

Code

public function __construct(KeyValueFactoryInterface $key_value_factory, LoggerInterface $logger, FileSystemInterface $file_system) {
  $this->rectorResults = $key_value_factory
    ->get('upgrade_status_rector_results');
  $this->logger = $logger;
  $this->fileSystem = $file_system;
}