Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Deprecate our factory interfaces #39

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

**Factory interfaces for PSR-7 HTTP Message.**

## Deprecation notice

This package and these PSR-7 factory interfaces are deprecated. We have succeeded with our goal of moving these
interfaces to PHP-FIG. The new [PSR-17](https://packagist.org/packages/psr/http-factory) package is backwards compatible
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's true. The API might not break, but you won't get the same PSR-7 object.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, if its the same http message, it should be BC. if its not the same PSR-7 implementation, that should not matter, as code should not rely on a factory returning a specific implementation. or do you mean something else?

with this package. (Except for the new PSR-17 is PHP7 only.)

## Install

Expand Down
2 changes: 2 additions & 0 deletions src/MessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Factory for PSR-7 Request and Response.
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*
* @deprecated Please use PSR-17 instead
*/
interface MessageFactory extends RequestFactory, ResponseFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/RequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Factory for PSR-7 Request.
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*
* @deprecated Please use PSR-17 instead
*/
interface RequestFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* This factory contract can be reused in Message and Server Message factories.
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*
* @deprecated Please use PSR-17 instead
*/
interface ResponseFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/StreamFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* Factory for PSR-7 Stream.
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*
* @deprecated Please use PSR-17 instead
*/
interface StreamFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/UriFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* Factory for PSR-7 URI.
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*
* @deprecated Please use PSR-17 instead
*/
interface UriFactory
{
Expand Down