src/Factory/AbstractDsnAdapterFactory.php
public function createAdapter(array $options = [])
    {
        if (!empty($options['dsn'])) {
            $dsn = new DSN($options['dsn']);
            if (!$dsn->isValid()) {
                throw new \InvalidArgumentException('Invalid DSN: '.$options['dsn']);
            }

            $this->DSN = $dsn;
        }

        return parent::createAdapter($options);
    }
public function createAdapter(array $options = [])
    {
        if (!empty($options['dsn'])) {
            $dsn = new DSN($options['dsn']);
            if (!$dsn->isValid()) {
                throw new \InvalidArgumentException('Invalid DSN: '.$options['dsn']);
            }

            $this->DSN = $dsn;
        }

        return parent::createAdapter($options);
    }
{@inheritdoc}