API Network RequestManagerFactory - evansims/openfga-php GitHub Wiki
Factory for creating RequestManager instances. This factory encapsulates the creation of RequestManager instances with the appropriate configuration for different use cases (normal requests vs batch operations).
Table of Contents
OpenFGA\Network
public function create(): RequestManager
Create a RequestManager for normal operations.
RequestManager
— A RequestManager configured with default retry settings
public function createForBatch(): RequestManager
Create a RequestManager for batch operations (no HTTP retries).
RequestManager
— A RequestManager configured with retries disabled
public function createWithRetries(int $maxRetries): RequestManager
Create a RequestManager with custom retry configuration.
Name | Type | Description |
---|---|---|
$maxRetries |
int |
Maximum number of retry attempts |
RequestManager
— A RequestManager configured with the specified retry limit