ConnectionFactory
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.
create(DatabaseConfig $config)
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.
create
ConnectionInterface
create(DatabaseConfig $config)
Instantiates the connection adapter selected by the resolved driver enum.