Imbo\EventListener\ImageVariations\Database\Doctrine::__construct PHP Method

__construct() public method

Class constructor
public __construct ( array $params = null, Doctrine\DBAL\Connection $connection = null )
$params array Parameters for the driver
$connection Doctrine\DBAL\Connection Optional connection instance
    public function __construct(array $params = null, Connection $connection = null)
    {
        if ($params !== null) {
            $this->params = array_merge($this->params, $params);
        }
        if ($connection !== null) {
            $this->setConnection($connection);
        }
    }