blob: fa819b5a2f759c564f5ef0e54c6be612459540d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Driver\Mysqli\Initializer;
use Doctrine\DBAL\Driver\Mysqli\Initializer;
use mysqli;
use SensitiveParameter;
final class Secure implements Initializer
{
public function __construct(
#[SensitiveParameter]
private readonly string $key,
private readonly string $cert,
private readonly string $ca,
private readonly string $capath,
private readonly string $cipher,
) {
}
public function initialize(mysqli $connection): void
{
$connection->ssl_set($this->key, $this->cert, $this->ca, $this->capath, $this->cipher);
}
}
|