HttpMessageFactoryServiceProvider

Class
implements ServiceProviderInterface
Final: Yes

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

Description

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

Tags
copyright

Description

Copyright (c) 2025 Felipe Sayão Lobato Abreu github@mentordosnerds.com

license

Description

https://opensource.org/licenses/MIT MIT License

Table of Contents

Interfaces

Methods

getExtensions()

Returns an array of service extensions.

 : array<string, callable>
getFactories()

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

 : array<string, callable>
Methods

getExtensions()

Public

Returns an array of service extensions.

public getExtensions() : array<string, callable>

Description

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

Return values
array<string, callable>

Description

an empty array

getFactories()

Public

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

public getFactories() : array<string, callable>

Description

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 values
array<string, callable>

Description

an associative array of service identifiers to factory definitions