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

Commit 9c00934

Browse files
authored
Merge pull request #42 from nicolas-grekas/psr17rulez
Deprecate all interfaces in favor of PSR-17 and allow `psr/http-message` v2
2 parents 597f30e + 78709a8 commit 9c00934

File tree

7 files changed

+19
-2
lines changed

7 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log
22

33

4+
## 1.1.0 - Unreleased
5+
6+
### Changed
7+
8+
- Allow `psr/http-message` v2 in addition to v1
9+
- Deprecate all interfaces in favor of [PSR-17](https://www.php-fig.org/psr/psr-17/)
10+
411
## 1.0.2 - 2015-12-19
512

613
### Added

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": ">=5.4",
15-
"psr/http-message": "^1.0"
15+
"psr/http-message": "^1.0 || ^2.0"
1616
},
1717
"autoload": {
1818
"psr-4": {
@@ -21,7 +21,7 @@
2121
},
2222
"extra": {
2323
"branch-alias": {
24-
"dev-master": "1.0-dev"
24+
"dev-master": "1.x-dev"
2525
}
2626
}
2727
}

src/MessageFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Factory for PSR-7 Request and Response.
77
*
88
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
9+
*
10+
* @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface and Psr\Http\Message\ResponseFactoryInterface instead.
911
*/
1012
interface MessageFactory extends RequestFactory, ResponseFactory
1113
{

src/RequestFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Factory for PSR-7 Request.
1111
*
1212
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
13+
*
14+
* @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead.
1315
*/
1416
interface RequestFactory
1517
{

src/ResponseFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* This factory contract can be reused in Message and Server Message factories.
1212
*
1313
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
14+
*
15+
* @deprecated since version 1.1, use Psr\Http\Message\ResponseFactoryInterface instead.
1416
*/
1517
interface ResponseFactory
1618
{

src/StreamFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Factory for PSR-7 Stream.
99
*
1010
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
11+
*
12+
* @deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead.
1113
*/
1214
interface StreamFactory
1315
{

src/UriFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Factory for PSR-7 URI.
99
*
1010
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
11+
*
12+
* @deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead.
1113
*/
1214
interface UriFactory
1315
{

0 commit comments

Comments
 (0)