src/Rentgen/Database/Connection/ConnectionConfig.php
private function parseConfiguration(array $config)
    {
        $this->currentEnvironment = 'dev';
        foreach($config as $environment => $connection) {
            if (isset($connection['dsn'])) {
                $this->dsn[$environment]  = $connection['dsn'];
            } else {
                $this->dsn[$environment]= sprintf('pgsql:host=%s; port=%s; dbname=%s;'
                    , $connection['host']
                    , $connection['port']
                    , $connection['database']);

            }
            //$this->adapter[$environment] = $connection['adapter'];
            $this->username[$environment] = $connection['username'];
            $this->password[$environment] = $connection['password'];
        }
    }
private function parseConfiguration(array $config)
    {
        $this->currentEnvironment = 'dev';
        foreach($config as $environment => $connection) {
            if (isset($connection['dsn'])) {
                $this->dsn[$environment]  = $connection['dsn'];
            } else {
                $this->dsn[$environment]= sprintf('pgsql:host=%s; port=%s; dbname=%s;'
                    , $connection['host']
                    , $connection['port']
                    , $connection['database']);

            }
            //$this->adapter[$environment] = $connection['adapter'];
            $this->username[$environment] = $connection['username'];
            $this->password[$environment] = $connection['password'];
        }
    }
private function parseConfiguration ( array $ config ) { $ this -> currentEnvironment = 'dev' ; foreach ( $ config as $ environment => $ connection ) { if ( isset ( $ connection [ 'dsn' ] ) ) { $ this -> dsn [ $ environment ] = $ connection [ 'dsn' ] ; } else { $ this -> dsn [ $ environment ] = sprintf ( 'pgsql:host=%s; port=%s; dbname=%s;' , $ connection [ 'host' ] , $ connection [ 'port' ] , $ connection [ 'database' ] ) ; } //$this->adapter[$environment] = $connection['adapter']; $ this -> username [ $ environment ] = $ connection [ 'username' ] ; $ this -> password [ $ environment ] = $ connection [ 'password' ] ; } }
Parse configuration.

@param array $config
@return void
Parse configuration .