You are here

ServiceManagerInterface.php in Backup and Migrate 5.0.x

File

src/Core/Service/ServiceManagerInterface.php
View source
<?php

namespace Drupal\backup_migrate\Core\Service;


/**
 * Interface ServiceManagerInterface.
 *
 * @package Drupal\backup_migrate\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.