public static function getDefaultConfig(Loops $loops = NULL) { $config = parent::getDefaultConfig($loops); if (getenv('REDIS_PORT') && preg_match('/^(.*?):\\/\\/(.*?):(.*?)$/', getenv('REDIS_PORT'), $match)) { $config->host = $match[2]; $config->port = $match[3]; } return $config; }
protected static function getDefaultConfig(Loops $loops = NULL) { $config = parent::getDefaultConfig($loops); $config->plugin = static::getDefaultPlugin($loops); return $config; }