Skip to content

HttpClientServiceProvider

github-actions edited this page Mar 29, 2026 · 1 revision

Class HttpClientServiceProvider.

Provides a PSR-compliant HTTP client service provider for dependency injection containers. This service provider SHALL register factories for HTTP client services. It MUST implement the ServiceProviderInterface to allow standardized service registration.


  • Full name: \FastForward\Http\Client\ServiceProvider\HttpClientServiceProvider
  • This class is marked as final and can't be subclassed
  • This class implements: ServiceProviderInterface
  • This class is a Final class

Methods

getFactories

Retrieves an array of service factories.

public getFactories(): array<class-string,callable>

This method MUST return an associative array where the key is the service name or interface and the value is a callable or factory responsible for creating the service. The array returned SHALL register the default Symfony HttpClient and a PSR-18 compatible client.

Return Value:

an associative array of service factories


getExtensions

Retrieves an array of service extensions.

public getExtensions(): array<class-string,callable>

This method MUST return an associative array of callables to extend existing services. If no extensions are to be registered, an empty array MUST be returned.

Return Value:

an associative array of service extensions


Clone this wiki locally