Initializes a new instance of the Connection class.
public __construct ( array $params, Doctrine\DBAL\Driver $driver, Doctrine\DBAL\Configuration $config = null, Doctrine\Common\EventManager $eventManager = null ) | ||
$params | array | The connection parameters. |
$driver | Doctrine\DBAL\Driver | The driver to use. |
$config | Doctrine\DBAL\Configuration | The configuration, optional. |
$eventManager | Doctrine\Common\EventManager | The event manager, optional. |