Skip to content
Snippets Groups Projects

Issue #3260669: automatic_updates_9_3_shim should add update_hook_registry service

Merged Issue #3260669: automatic_updates_9_3_shim should add update_hook_registry service
1 unresolved thread
Merged Adam G-H requested to merge issue/automatic_updates-3260669:3260669-shim-92 into 8.x-2.x
1 unresolved thread
1 file
+ 4
6
Compare changes
  • Side-by-side
  • Inline
@@ -2,6 +2,7 @@
namespace Drupal\automatic_updates\Controller;
use Drupal\automatic_updates_9_3_shim\UpdateHookRegistry;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Update\UpdateRegistry;
use Drupal\Core\Url;
@@ -19,7 +20,7 @@ class UpdateController extends ControllerBase {
/**
* The update hook registry service.
*
* @var \Drupal\Core\Update\UpdateHookRegistry
* @var \Drupal\automatic_updates_9_3_shim\UpdateHookRegistry
*/
protected $updateHookRegistry;
@@ -33,15 +34,12 @@ class UpdateController extends ControllerBase {
/**
* Constructs an UpdateController object.
*
* @param object $update_hook_registry
* @param \Drupal\automatic_updates_9_3_shim\UpdateHookRegistry $update_hook_registry
* The update hook registry service.
* @param \Drupal\Core\Update\UpdateRegistry $post_update_registry
* The post-update registry service.
*
* @todo Give $update_hook_registry the \Drupal\Core\Update\UpdateHookRegistry
* type hint when 9.3 is the minimum supported version of core.
*/
public function __construct(object $update_hook_registry, UpdateRegistry $post_update_registry) {
public function __construct(UpdateHookRegistry $update_hook_registry, UpdateRegistry $post_update_registry) {
$this->updateHookRegistry = $update_hook_registry;
$this->postUpdateRegistry = $post_update_registry;
}
Loading