ConnectionResolverInterface::getDefaultConnection()

string getDefaultConnection() Get the default connection name. Return Value string

Connector::createConnection()

PDO createConnection(string $dsn, array $config, array $options) Create a new PDO connection. Parameters string $dsn array $config array $options Return Value PDO

Connector::getDefaultOptions()

array getDefaultOptions() Get the default PDO connection options. Return Value array

Connector

Connector class Connector (View source) Traits DetectsLostConnections

ConnectionResolver::setDefaultConnection()

void setDefaultConnection(string $name) Set the default connection name. Parameters string $name Return Value void

ConnectionResolverInterface::connection()

ConnectionInterface connection(string $name = null) Get a database connection instance. Parameters string $name Return Value ConnectionInterface

ConnectionResolverInterface

ConnectionResolverInterface interface ConnectionResolverInterface (View source) Methods ConnectionInterface connection(string $name = null) Get a database connection instance. string getDefaultConnection() Get the default connection name. void setDefaultConnection(string $name) Set the default connection name.

ConnectionResolver::__construct()

void __construct(array $connections = array()) Create a new connection resolver instance. Parameters array $connections Return Value void

ConnectionResolver::connection()

ConnectionInterface connection(string $name = null) Get a database connection instance. Parameters string $name Return Value ConnectionInterface

ConnectionResolver::getDefaultConnection()

string getDefaultConnection() Get the default connection name. Return Value string