interface BaseInterface in DRD Agent 4.0.x
Same name in this branch
- 4.0.x src/Crypt/BaseInterface.php \Drupal\drd_agent\Crypt\BaseInterface
- 4.0.x src/Agent/Action/BaseInterface.php \Drupal\drd_agent\Agent\Action\BaseInterface
- 4.0.x src/Agent/Remote/BaseInterface.php \Drupal\drd_agent\Agent\Remote\BaseInterface
- 4.0.x src/Agent/Auth/BaseInterface.php \Drupal\drd_agent\Agent\Auth\BaseInterface
Same name and namespace in other branches
- 8.3 src/Crypt/BaseInterface.php \Drupal\drd_agent\Crypt\BaseInterface
Provides an interface for encryption.
Hierarchy
- interface \Drupal\drd_agent\Crypt\BaseInterface
Expanded class hierarchy of BaseInterface
All classes that implement BaseInterface
File
- src/
Crypt/ BaseInterface.php, line 12
Namespace
Drupal\drd_agent\CryptView source
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;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseInterface:: |
public static | function | Create instance of a crypt object of given method with provided settings. | 1 |
BaseInterface:: |
public static | function | Get a list of crypt methods, either just their ids or instances of each. | 2 |