BaseInterface.php in DRD Agent 4.0.x
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\drd_agent\CryptFile
src/Crypt/BaseInterface.phpView source
<?php
namespace Drupal\drd_agent\Crypt;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
 * Provides an interface for encryption.
 *
 * @ingroup drd
 */
interface BaseInterface {
  /**
   * Create instance of a crypt object of given method with provided settings.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   * @param string $method
   *   ID of the crypt method.
   * @param array $settings
   *   Settings of the crypt instance.
   *
   * @return BaseMethodInterface
   *   The crypt object.
   */
  public static function getInstance(ContainerInterface $container, $method, array $settings) : BaseMethodInterface;
  /**
   * Get a list of crypt methods, either just their ids or instances of each.
   *
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   * @param bool $instances
   *   Whether to receive ids (FALSE) or instances (TRUE).
   *
   * @return array
   *   List of crypt methods.
   */
  public static function getMethods(ContainerInterface $container, $instances = FALSE) : array;
}Interfaces
| Name   | Description | 
|---|---|
| BaseInterface | Provides an interface for encryption. | 
