ApiClient
class ApiClient mixin TResource>
Properties
| protected null|TConfig | $config | ||
| protected TResource> | $resource | ||
| protected bool | $enableMiddleware | ||
| protected array<callable|object|string> | $requestMiddleware | ||
| protected array<callable|object|string> | $responseMiddleware | ||
| protected array<class-string, object> | $middlewareCache | The resolved middleware instances for this client. |
Methods
Dynamically pass method calls to the pending request.
Get the configuration for the API client.
Get the resource class name.
Determine whether middleware is enabled for the client.
Enable middleware for the client.
Disable middleware for the client.
Get the request middleware.
Get the response middleware.
Resolve a middleware instance for this client.
Get a new pending request instance.
Details
at line 49
mixed
__call(string $method, array $parameters)
Dynamically pass method calls to the pending request.
at line 60
DataObject|null
getConfig()
Get the configuration for the API client.
at line 68
string
getResource()
Get the resource class name.
at line 76
bool
getEnableMiddleware()
Determine whether middleware is enabled for the client.
at line 84
ApiClient
enableMiddleware()
Enable middleware for the client.
at line 94
ApiClient
disableMiddleware()
Disable middleware for the client.
at line 104
array
getRequestMiddleware()
Get the request middleware.
at line 112
array
getResponseMiddleware()
Get the response middleware.
at line 120
object
resolveMiddleware(string $middleware)
Resolve a middleware instance for this client.
at line 134
PendingRequest
getClient()
Get a new pending request instance.