You are here

function ServiceManager::__construct in Backup and Migrate 8.4

The constructor. Initialise the list of services.

File

lib/backup_migrate_core/src/Service/ServiceManager.php, line 28

Class

ServiceManager
A very simple service locator. Does not handle dependency injection but could be replaced by a more complex application specific version which does.

Namespace

BackupMigrate\Core\Service

Code

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

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