commercetools-sdk-php-v2
master
The platform, import-api and ml-api PHP sdks generated from our api reference.
|
Static Public Member Functions | |
static | createDefaultMiddlewares (?OAuth2Handler $handler=null, ?LoggerInterface $logger=null, int $maxRetries=0, ?CorrelationIdProvider $correlationIdProvider=null) |
static | createCorrelationIdMiddleware (CorrelationIdProvider $correlationIdProvider) |
static | createRetryNAMiddleware (int $maxRetries) |
static | createMiddlewareForOAuthHandler (OAuth2Handler $handler) |
static | createLoggerMiddleware (LoggerInterface $logger, string $logLevel=LogLevel::INFO, string $template=MessageFormatter::CLF) |
static | createReauthenticateMiddleware (OAuth2Handler $oauthHandler, int $maxRetries=1) |
Definition at line 21 of file MiddlewareFactory.php.
|
static |
@psalm-return callable
Definition at line 51 of file MiddlewareFactory.php.
|
static |
@psalm-return array<string, callable>
Definition at line 26 of file MiddlewareFactory.php.
|
static |
@psalm-param 'alert'|'critical'|'debug'|'emergency'|'error'|'info'|'notice'|'warning' $logLevel @psalm-return callable
Definition at line 104 of file MiddlewareFactory.php.
|
static |
@psalm-return callable
Definition at line 95 of file MiddlewareFactory.php.
|
static |
Middleware that reauthenticates on invalid token error
@psalm-param callable(RequestInterface, array{reauth: int}): PromiseInterface $handler @psalm-return callable(RequestInterface, array{reauth: int})
@psalm-return PromiseInterface @psalm-param array{reauth: int} $options
Definition at line 114 of file MiddlewareFactory.php.
|
static |
@psalm-return callable
Definition at line 66 of file MiddlewareFactory.php.