You are here

public function ServiceManager::get in Backup and Migrate 8.4

Retrieve a service from the locator.

Parameters

string $type: The service type identifier

Return value

mixed

Overrides ServiceManagerInterface::get

1 call to ServiceManager::get()
ServiceManager::addClient in lib/backup_migrate_core/src/Service/ServiceManager.php
Inject all available services into the give plugin.

File

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

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

public function get($type) {
  return $this->services[$type];
}