getEnv('MYSQL_ROOT_PASSWORD'), $MYSQL_HOST_ADDR); break; case 'Postgres': require $LIB_DIR . DIRECTORY_SEPARATOR . $class . '.php'; $Docker = loadClass('Docker'); $_LOADED_LIBS[$class] = \devilbox\Postgres::getInstance($Docker->getEnv('POSTGRES_USER'), $Docker->getEnv('POSTGRES_PASSWORD'), $POSTGRES_HOST_ADDR); break; // Get optional docker classes default: // Redis if ($class == 'Redis' && loadClass('Docker')->getEnv('COMPOSE_OPTIONAL') == 1) { require $LIB_DIR . DIRECTORY_SEPARATOR . $class . '.php'; $_LOADED_LIBS[$class] = \devilbox\Redis::getInstance('redis'); break; } else { exit('Class does not exist: '.$class); } } return $_LOADED_LIBS[$class]; } } // VirtualHost DNS check // Temporarily disable due to: // https://github.com/cytopia/devilbox/issues/8 $ENABLE_VHOST_DNS_CHECK = false;