class ConnectionFactory (View source)

Methods

void
__construct( Container $container)

Create a new connection factory instance.

make( array $config, string $name = null)

Establish a PDO connection based on the configuration.

createConnector( array $config)

Create a connector instance based on the configuration.

Details

at line line 29
void __construct( Container $container)

Create a new connection factory instance.

Parameters

Container $container

Return Value

void

at line line 41
Connection make( array $config, string $name = null)

Establish a PDO connection based on the configuration.

Parameters

array $config
string $name

Return Value

Connection

at line line 173
ConnectorInterface createConnector( array $config)

Create a connector instance based on the configuration.

Parameters

array $config

Return Value

ConnectorInterface

Exceptions

InvalidArgumentException