'root', 'pass' => loadClass('Helper')->getEnv('MYSQL_ROOT_PASSWORD') )); break; case 'Pgsql': loadFile($class, $cnt_dir); $_LOADED_LIBS[$class] = \devilbox\Pgsql::getInstance($GLOBALS['PGSQL_HOST_NAME'], array( 'user' => loadClass('Helper')->getEnv('PGSQL_ROOT_USER'), 'pass' => loadClass('Helper')->getEnv('PGSQL_ROOT_PASSWORD'), 'db' => 'postgres' )); break; case 'Redis': loadFile($class, $cnt_dir); $_LOADED_LIBS[$class] = \devilbox\Redis::getInstance($GLOBALS['REDIS_HOST_NAME']); break; case 'Memcd': loadFile($class, $cnt_dir); $_LOADED_LIBS[$class] = \devilbox\Memcd::getInstance($GLOBALS['MEMCD_HOST_NAME']); break; case 'Mongo': loadFile($class, $cnt_dir); $_LOADED_LIBS[$class] = \devilbox\Mongo::getInstance($GLOBALS['MONGO_HOST_NAME']); break; // Get optional docker classes default: // Redis exit('Class does not exist: '.$class); } return $_LOADED_LIBS[$class]; } }