ConfigurationFile
in package
implements
ConnectionLoader
This class will return a Connection instance, loaded from a configuration file provided as argument.
Interfaces, Classes, Traits and Enums
- ConnectionLoader
- The ConnectionLoader defines the interface used to load the Doctrine\DBAL\Connection instance to use for migrations.
Table of Contents
- $filename : string
- __construct() : mixed
- getConnection() : Connection
- Read the input and return a Connection, returns null if the config is not supported.
Properties
$filename
private
string
$filename
Methods
__construct()
public
__construct(string $filename) : mixed
Parameters
- $filename : string
Return values
mixed —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