Skip to content
Snippets Groups Projects
Commit a7913951 authored by Ted Bowman's avatar Ted Bowman
Browse files

Issue #3267387 by Theresa.Grannum: The readiness checker manager service is...

Issue #3267387 by Theresa.Grannum: The readiness checker manager service is not longer needed in \Drupal\automatic_updates\Form\UpdaterForm
parent 347cb2d2
No related branches found
No related tags found
1 merge request!224Issue #3267387: The readiness checker manager service is not longer needed in \Drupal\automatic_updates\Form\UpdaterForm
......@@ -7,7 +7,6 @@ use Drupal\automatic_updates\Event\ReadinessCheckEvent;
use Drupal\automatic_updates\Updater;
use Drupal\automatic_updates\UpdateRecommender;
use Drupal\automatic_updates\Validation\ReadinessTrait;
use Drupal\automatic_updates\Validation\ReadinessValidationManager;
use Drupal\Core\Batch\BatchBuilder;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
......@@ -46,13 +45,6 @@ class UpdaterForm extends FormBase {
*/
protected $state;
/**
* The readiness validation manager service.
*
* @var \Drupal\automatic_updates\Validation\ReadinessValidationManager
*/
protected $readinessValidationManager;
/**
* The event dispatcher service.
*
......@@ -74,17 +66,14 @@ class UpdaterForm extends FormBase {
* The state service.
* @param \Drupal\automatic_updates\Updater $updater
* The updater service.
* @param \Drupal\automatic_updates\Validation\ReadinessValidationManager $readiness_validation_manager
* The readiness validation manager service.
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher
* The event dispatcher service.
* @param \Symfony\Component\HttpFoundation\Session\SessionInterface $session
* The current session.
*/
public function __construct(StateInterface $state, Updater $updater, ReadinessValidationManager $readiness_validation_manager, EventDispatcherInterface $event_dispatcher, SessionInterface $session) {
public function __construct(StateInterface $state, Updater $updater, EventDispatcherInterface $event_dispatcher, SessionInterface $session) {
$this->updater = $updater;
$this->state = $state;
$this->readinessValidationManager = $readiness_validation_manager;
$this->eventDispatcher = $event_dispatcher;
$this->session = $session;
}
......@@ -103,7 +92,6 @@ class UpdaterForm extends FormBase {
return new static(
$container->get('state'),
$container->get('automatic_updates.updater'),
$container->get('automatic_updates.readiness_validation_manager'),
$container->get('event_dispatcher'),
$container->get('session')
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment