ConnectionRegistryConnection
in package
implements
ConnectionLoader
FinalYes
Table of Contents
Interfaces
- ConnectionLoader
- The ConnectionLoader defines the interface used to load the Doctrine\DBAL\Connection instance to use for migrations.
Properties
- $defaultConnectionName : string|null
- $registry : ConnectionRegistry
Methods
- getConnection() : Connection
- Read the input and return a Connection, returns null if the config is not supported.
- withSimpleDefault() : self
- __construct() : mixed
Properties
$defaultConnectionName
private
string|null
$defaultConnectionName
= null
$registry
private
ConnectionRegistry
$registry
Methods
getConnection()
Read the input and return a Connection, returns null if the config is not supported.
public
getConnection([string|null $name = null ]) : Connection
Parameters
- $name : string|null = null
Return values
ConnectionwithSimpleDefault()
public
static withSimpleDefault(ConnectionRegistry $registry[, string|null $connectionName = null ]) : self
Parameters
- $registry : ConnectionRegistry
- $connectionName : string|null = null
Return values
self__construct()
private
__construct() : mixed