You are here

public function UpgradeStatusForm::__construct in Upgrade Status 8.3

Same name and namespace in other branches
  1. 8 src/Form/UpgradeStatusForm.php \Drupal\upgrade_status\Form\UpgradeStatusForm::__construct()
  2. 8.2 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.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\DrupalKernelInterface $kernel: The Drupal kernel.

File

src/Form/UpgradeStatusForm.php, line 171

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, Connection $database, DrupalKernelInterface $kernel) {
  $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;
  $this->nextMajor = ProjectCollector::getDrupalCoreMajorVersion() + 1;
  $this->database = $database;
  $this->kernel = $kernel;
}