protected function createConnectionConfig(array $doctrineConfig, array $databaseConfig)
    {
        $connectionName   = array_get($doctrineConfig, 'connection', $databaseConfig['default']);
        $connectionConfig = array_get($databaseConfig['connections'], $connectionName);

        if ($connectionConfig === null) {
            throw new Exception("Configuration for connection '$connectionName' not found.");
        }

        return $this->normalizeConnectionConfig($connectionConfig);
    }
protected function createConnectionConfig(array $doctrineConfig, array $databaseConfig)
    {
        $connectionName   = array_get($doctrineConfig, 'connection', $databaseConfig['default']);
        $connectionConfig = array_get($databaseConfig['connections'], $connectionName);

        if ($connectionConfig === null) {
            throw new Exception("Configuration for connection '$connectionName' not found.");
        }

        return $this->normalizeConnectionConfig($connectionConfig);
    }
protected function createConnectionConfig ( array $ doctrineConfig , array $ databaseConfig ) { $ connectionName = array_get ( $ doctrineConfig , 'connection' , $ databaseConfig [ 'default' ] ) ; $ connectionConfig = array_get ( $ databaseConfig [ 'connections' ] , $ connectionName ) ; if ( $ connectionConfig === null ) { throw new Exception ( "Configuration for connection '$connectionName' not found." ) ; } return $ this -> normalizeConnectionConfig ( $ connectionConfig ) ; }
Creates the Doctrine connection configuration.

@param array $doctrineConfig
@param array $databaseConfig

@return array
@throws Exception
Creates the Doctrine connection configuration .