You are here

public function OpenSSL::__construct in DRD Agent 8.3

Same name and namespace in other branches
  1. 4.0.x src/Crypt/Method/OpenSSL.php \Drupal\drd_agent\Crypt\Method\OpenSSL::__construct()

BaseMethod constructor.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

Overrides BaseMethod::__construct

File

src/Crypt/Method/OpenSSL.php, line 30

Class

OpenSSL
Provides OpenSSL encryption functionality.

Namespace

Drupal\drd_agent\Crypt\Method

Code

public function __construct(ContainerInterface $container, array $settings = []) {
  parent::__construct($container);
  $this->cipher = $settings['cipher'] ?? '';
  $this->password = $settings['password'] ?? '';
}