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;
    }