Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Connection::__construct PHP Method

__construct() public method

public __construct ( array $params, Doctrine\DBAL\Driver $driver, Doctrine\DBAL\Configuration $config = null, Doctrine\Common\EventManager $eventManager = null )
$params array
$driver Doctrine\DBAL\Driver
$config Doctrine\DBAL\Configuration
$eventManager Doctrine\Common\EventManager
    public function __construct(array $params, Driver $driver, Configuration $config = null, EventManager $eventManager = null)
    {
        if (!$driver instanceof ServerGoneAwayExceptionsAwareInterface) {
            throw new \InvalidArgumentException(sprintf('%s needs a driver that implements ServerGoneAwayExceptionsAwareInterface', get_class($this)));
        }
        if (isset($params['driverOptions']['x_reconnect_attempts'])) {
            $this->reconnectAttempts = (int) $params['driverOptions']['x_reconnect_attempts'];
        }
        parent::__construct($params, $driver, $config, $eventManager);
    }