You are here

public function UpgradeStatusForm::__construct in Upgrade Status 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/UpgradeStatusForm.php \Drupal\upgrade_status\Form\UpgradeStatusForm::__construct()
  2. 8 src/Form/UpgradeStatusForm.php \Drupal\upgrade_status\Form\UpgradeStatusForm::__construct()

Constructs a Drupal\upgrade_status\Form\UpgradeStatusForm.

Parameters

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

\Drupal\Core\KeyValueStore\KeyValueExpirableFactory $key_value_expirable: The expirable key/value storage.

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

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

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

\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.

\Drupal\upgrade_status\DeprecationAnalyzer $deprecation_analyzer: The deprecation analyzer.

\Drupal\Core\State\StateInterface $state: The state service.

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter.

\Drupal\Core\Routing\RedirectDestination $destination: The destination service.

File

src/Form/UpgradeStatusForm.php, line 139

Class

UpgradeStatusForm

Namespace

Drupal\upgrade_status\Form

Code

public function __construct(ProjectCollector $project_collector, KeyValueExpirableFactory $key_value_expirable, ScanResultFormatter $result_formatter, RendererInterface $renderer, LoggerInterface $logger, ModuleHandler $module_handler, DeprecationAnalyzer $deprecation_analyzer, StateInterface $state, DateFormatter $date_formatter, RedirectDestination $destination) {
  $this->projectCollector = $project_collector;
  $this->releaseStore = $key_value_expirable
    ->get('update_available_releases');
  $this->resultFormatter = $result_formatter;
  $this->renderer = $renderer;
  $this->logger = $logger;
  $this->moduleHandler = $module_handler;
  $this->deprecationAnalyzer = $deprecation_analyzer;
  $this->state = $state;
  $this->dateFormatter = $date_formatter;
  $this->destination = $destination;
}