DatabaseUpdateHandlerPluginManager.php in Automatic Updates 8
File
src/DatabaseUpdateHandlerPluginManager.php
View source
<?php
namespace Drupal\automatic_updates;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class DatabaseUpdateHandlerPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/DatabaseUpdateHandler', $namespaces, $module_handler, 'Drupal\\automatic_updates\\DatabaseUpdateHandlerInterface', 'Drupal\\automatic_updates\\Annotation\\DatabaseUpdateHandler');
$this
->alterInfo('database_update_handler_info');
$this
->setCacheBackend($cache_backend, 'database_update_handler_plugins');
}
}