Endpoint
in package
Where and how the database is reached, read from the booter settings and shared by the runtime connection and the migrations' Doctrine DBAL connection: `dbhost`, `dbport` and the transport encryption (`db_ssl`).
Table of Contents
- $host : string|null
- $port : int|null
- $tls : bool
- $instance : Endpoint|null
- applyTls() : int
- Prepares a not-yet-connected mysqli handle for the configured transport and returns the flags for real_connect(). Plaintext connections are left untouched.
- get() : self
- The endpoint is read from the configuration once per request.
- trustStore() : array<string|int, mixed>
- The system trust store, as a [file, directory] pair. mysqli only verifies the server certificate when handed an authority and never resolves one itself; without this, db_ssl would silently accept any certificate. A private authority is added to the system store, or configured PHP-wide via openssl.cafile.
- __construct() : mixed
Properties
$host
public
string|null
$host
$port
public
int|null
$port
$tls
public
bool
$tls
$instance
private
static Endpoint|null
$instance
= null
Methods
applyTls()
Prepares a not-yet-connected mysqli handle for the configured transport and returns the flags for real_connect(). Plaintext connections are left untouched.
public
applyTls(mysqli $connection) : int
Parameters
- $connection : mysqli
Return values
int —get()
The endpoint is read from the configuration once per request.
public
static get() : self
Return values
self —trustStore()
The system trust store, as a [file, directory] pair. mysqli only verifies the server certificate when handed an authority and never resolves one itself; without this, db_ssl would silently accept any certificate. A private authority is added to the system store, or configured PHP-wide via openssl.cafile.
public
trustStore() : array<string|int, mixed>
Return values
array<string|int, mixed> —__construct()
private
__construct() : mixed