You are here

ServiceManagerInterface.php in Backup and Migrate 8.4

File

lib/backup_migrate_core/src/Service/ServiceManagerInterface.php
View source
<?php

namespace BackupMigrate\Core\Service;


/**
 * Interface ServiceManagerInterface.
 *
 * @package BackupMigrate\Core\Environment
 */
interface ServiceManagerInterface {

  /**
   * Retrieve a service from the locator.
   *
   * @param string $type
   *  The service type identifier
   *
   * @return mixed
   */
  public function get($type);

  /**
   * Get an array of keys for all available services.
   *
   * @return array
   */
  public function keys();

  /**
   * Inject the services in this locator into the given plugin.
   *
   * @param object $plugin
   *
   * @return mixed
   */
  public function addClient($plugin);

}

Interfaces

Namesort descending Description
ServiceManagerInterface Interface ServiceManagerInterface.