You are here

public function ServiceManager::__construct in Backup and Migrate 5.0.x

The constructor. Initialise the list of services.

File

src/Core/Service/ServiceManager.php, line 28

Class

ServiceManager
A very simple service locator.

Namespace

Drupal\backup_migrate\Core\Service

Code

public function __construct() {
  $this->services = [];

  // Allow the locator to inject itself.
  $this->services['ServiceManager'] = $this;
}