public static function Base::getInstance in DRD Agent 4.0.x
Same name and namespace in other branches
- 8.3 src/Crypt/Base.php \Drupal\drd_agent\Crypt\Base::getInstance()
Create instance of a crypt object of given method with provided settings.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container:
string $method: ID of the crypt method.
array $settings: Settings of the crypt instance.
Return value
BaseMethodInterface The crypt object.
Overrides BaseInterface::getInstance
1 call to Base::getInstance()
- Base::getCryptInstance in src/
Agent/ Action/ Base.php - Get authorised Crypt object or FALSE if none is available.
File
- src/
Crypt/ Base.php, line 17
Class
- Base
- Provides base encryption functionality.
Namespace
Drupal\drd_agent\CryptCode
public static function getInstance(ContainerInterface $container, $method, array $settings) : BaseMethodInterface {
$classname = "\\Drupal\\drd_agent\\Crypt\\Method\\{$method}";
return new $classname($container, $settings);
}