Skip to content

HttpMessageFactoryServiceProvider

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

This file is part of php-fast-forward/http-factory.

This source file is subject to the license bundled with this source code in the file LICENSE.


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

See Also:

Methods

getFactories

Returns a list of service factories compliant with PSR-11.

public getFactories(): array<string,callable>

This method defines mappings for PSR-17 and PSR-7 related interfaces using Nyholm's implementation. Aliases are created for consistency across PSR interfaces by reusing a single Psr17Factory instance.

Return Value:

an associative array of service identifiers to factory definitions


getExtensions

Returns an array of service extensions.

public getExtensions(): array<string,callable>

This service provider does not define extensions and SHALL return an empty array.

Return Value:

an empty array


Clone this wiki locally