public function MCrypt::__construct in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x src/Crypt/Method/MCrypt.php \Drupal\drd_agent\Crypt\Method\MCrypt::__construct()
BaseMethod constructor.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container:
Overrides BaseMethod::__construct
File
- src/
Crypt/ Method/ MCrypt.php, line 27
Class
- MCrypt
- Provides MCrypt encryption functionality.
Namespace
Drupal\drd_agent\Crypt\MethodCode
public function __construct(ContainerInterface $container, array $settings = []) {
parent::__construct($container);
$this->cipher = $settings['cipher'] ?? 'rijndael-256';
$this->mode = $settings['mode'] ?? 'cbc';
$this->password = $settings['password'] ?? '';
}