You are here

public function UpgradeStatusCommands::__construct in Upgrade Status 8.3

Same name and namespace in other branches
  1. 8.2 src/Commands/UpgradeStatusCommands.php \Drupal\upgrade_status\Commands\UpgradeStatusCommands::__construct()

Constructs a new UpgradeStatusCommands object.

Parameters

\Drupal\upgrade_status\ScanResultFormatter $result_formatter: The scan result formatter service.

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

\Drupal\upgrade_status\DeprecationAnalyzer $deprecation_analyzer: The codebase analyzer service.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

File

src/Commands/UpgradeStatusCommands.php, line 58

Class

UpgradeStatusCommands
Upgrade Status Drush command

Namespace

Drupal\upgrade_status\Commands

Code

public function __construct(ScanResultFormatter $result_formatter, ProjectCollector $project_collector, DeprecationAnalyzer $deprecation_analyzer, DateFormatterInterface $date_formatter) {
  $this->projectCollector = $project_collector;
  $this->resultFormatter = $result_formatter;
  $this->deprecationAnalyzer = $deprecation_analyzer;
  $this->dateFormatter = $date_formatter;
}