You are here

public function MCrypt::__construct in DRD Agent 4.0.x

Same name and namespace in other branches
  1. 8.3 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\Method

Code

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'] ?? '';
}