protected function getDatabaseConnections()
    {
        $configFile = $this->findDatabaseFile();
        
        if (!$configFile) {
            return false;
        }
        
        switch (substr($configFile, -3)) {
            case 'php':
                $connections = require $configFile;
                break;
            
            case 'yml':
                $connections = Yaml::readFile($configFile);
                break;
        }
        
        return $connections;
    }
protected function getDatabaseConnections()
    {
        $configFile = $this->findDatabaseFile();
        
        if (!$configFile) {
            return false;
        }
        
        switch (substr($configFile, -3)) {
            case 'php':
                $connections = require $configFile;
                break;
            
            case 'yml':
                $connections = Yaml::readFile($configFile);
                break;
        }
        
        return $connections;
    }
protected function getDatabaseConnections ( ) { $ configFile = $ this -> findDatabaseFile ( ) ; if ( ! $ configFile ) { return false ; } switch ( substr ( $ configFile , - 3 ) ) { case 'php' : $ connections = require $ configFile ; break ; case 'yml' : $ connections = Yaml :: readFile ( $ configFile ) ; break ; } return $ connections ; }
Get database connections
Gets the configuration from the database file.

@return array|bool
Get database connections Gets the configuration from the database file .