src/Silex/Doctrine/DBAL/Tools/Console/Command/AbstractDBALCommand.php
protected function getConnectionParams($connectionName = null)
    {
        return ($connectionName != null ) ?
            $this->getContainer()['dbs'][$connectionName]->getParams():
            $this->getHelper('db')->getConnection()->getParams();
    }
protected function getConnectionParams($connectionName = null)
    {
        return ($connectionName != null ) ?
            $this->getContainer()['dbs'][$connectionName]->getParams():
            $this->getHelper('db')->getConnection()->getParams();
    }
Gets connection params
@param string|null $connectionName Connection name like 'default'
@return array