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

Deprecate all interfaces in favor of PSR-17 and allow psr/http-message v2 #42

Merged
merged 1 commit into from
Apr 14, 2023
Merged
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log


## 1.1.0 - Unreleased

### Changed

- Allow `psr/http-message` v2 in addition to v1
- Deprecate all interfaces in favor of [PSR-17](https://www.php-fig.org/psr/psr-17/)

## 1.0.2 - 2015-12-19

### Added
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": ">=5.4",
"psr/http-message": "^1.0"
"psr/http-message": "^1.0 || ^2.0"
},
"autoload": {
"psr-4": {
Expand All @@ -21,7 +21,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
"dev-master": "1.x-dev"
}
}
}
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 since version 1.1, use Psr\Http\Message\RequestFactoryInterface and Psr\Http\Message\ResponseFactoryInterface 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 since version 1.1, use Psr\Http\Message\RequestFactoryInterface 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 since version 1.1, use Psr\Http\Message\ResponseFactoryInterface 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 since version 1.1, use Psr\Http\Message\StreamFactoryInterface 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 since version 1.1, use Psr\Http\Message\UriFactoryInterface instead.
*/
interface UriFactory
{
Expand Down