You are here

public function PluginManager::setServiceManager in Backup and Migrate 5.0.x

Parameters

\Drupal\backup_migrate\Core\Service\ServiceManagerInterface $services:

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

File

src/Core/Plugin/PluginManager.php, line 187

Class

PluginManager
@package Drupal\backup_migrate\Core\Plugin

Namespace

Drupal\backup_migrate\Core\Plugin

Code

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

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