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

Connector class Connector (View source) Traits DetectsLostConnections

ConnectionResolverInterface::setDefaultConnection()

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

ConnectionResolverInterface::getDefaultConnection()

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

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::setDefaultConnection()

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

ConnectionResolver::hasConnection()

bool hasConnection(string $name) Check if a connection has been registered. Parameters string $name Return Value bool

ConnectionResolver::getDefaultConnection()

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