You are here

public function PluginManager::setServiceManager in Backup and Migrate 8.4

Parameters

ServiceManagerInterface $services:

1 call to PluginManager::setServiceManager()
PluginManager::__construct in lib/backup_migrate_core/src/Plugin/PluginManager.php

File

lib/backup_migrate_core/src/Plugin/PluginManager.php, line 185

Class

PluginManager
Class PluginManager.

Namespace

BackupMigrate\Core\Plugin

Code

public function setServiceManager($services) {
  $this->services = $services;

  // Inject or re-inject the services.
  foreach ($this
    ->getAll() as $key => $plugin) {
    $this
      ->services()
      ->addClient($plugin);
  }
}