final class ConnectionFactory (View source)

Selects the concrete connection implementation for a resolved driver configuration.

Methods

__construct(DatabaseInstrumentation $instrumentation = new DatabaseInstrumentation())

Creates a factory with shared optional database instrumentation.

Instantiates the connection adapter selected by the resolved driver enum.

Details

__construct

__construct(DatabaseInstrumentation $instrumentation = new DatabaseInstrumentation())

Creates a factory with shared optional database instrumentation.

Parameters

DatabaseInstrumentation $instrumentation

create

Instantiates the connection adapter selected by the resolved driver enum.

Parameters

DatabaseConfig $config

Return Value

ConnectionInterface