public function __construct()
{
if ($this->isNull($this->driverInstance)) {
try {
$this->driverInstance = Bridge\Crypt::getInstance($this->passwordAlgo, $this->cipherMode, $this->cipher);
if (!$this->isInstanceOf($this->driverInstance, '\\Webiny\\Component\\Crypt\\Bridge\\CryptInterface')) {
throw new CryptException('The provided bridge does not implement the required
interface "\\Webiny\\Component\\Crypt\\Bridge\\CryptInterface"');
}
} catch (\Exception $e) {
throw $e;
}
}
}