芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/square/square/src/Apis/BaseApi.php
config = $config; $this->authManagers = $authManagers; $this->httpCallBack = $httpCallBack; Request::timeout($config->getTimeout()); Request::enableRetries($config->shouldEnableRetries()); Request::maxNumberOfRetries($config->getNumberOfRetries()); Request::retryInterval($config->getRetryInterval()); Request::backoffFactor($config->getBackOffFactor()); Request::maximumRetryWaitTime($config->getMaximumRetryWaitTime()); Request::retryOnTimeout($config->shouldRetryOnTimeout()); Request::httpMethodsToRetry($config->getHttpMethodsToRetry()); Request::httpStatusCodesToRetry($config->getHttpStatusCodesToRetry()); } /** * Get auth manager for the provided namespace key. * * @param string $key Namespace key * @return AuthManagerInterface The AuthManager set for this key. */ protected function getAuthManager(string $key): AuthManagerInterface { return $this->authManagers[$key]; } /** * Get HttpCallBack for this controller * * @return HttpCallBack|null The HttpCallBack object set for this controller */ public function getHttpCallBack(): ?HttpCallBack { return $this->httpCallBack; } /** * Get a new JsonMapper instance for mapping objects * * @return \apimatic\jsonmapper\JsonMapper JsonMapper instance */ protected function getJsonMapper(): JsonMapper { $mapper = new JsonMapper(); return $mapper; } /** * Is the response valid? */ protected function isValidResponse(HttpResponse $response): bool { return $response->getStatusCode() >= 200 && $response->getStatusCode() < 300; } }