Skip to content

Commit d9f6bf6

Browse files
authored
Merge pull request #106 from php-http/patch-deprecation
Added deprecation notification on our factories
2 parents 144d13b + af747ab commit d9f6bf6

9 files changed

+18
-0
lines changed

src/MessageFactory/DiactorosMessageFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* Creates Diactoros messages.
1212
*
1313
* @author GeLo <geloen.eric@gmail.com>
14+
*
15+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory
1416
*/
1517
final class DiactorosMessageFactory implements MessageFactory
1618
{

src/MessageFactory/GuzzleMessageFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Creates Guzzle messages.
1111
*
1212
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
13+
*
14+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
1315
*/
1416
final class GuzzleMessageFactory implements MessageFactory
1517
{

src/MessageFactory/SlimMessageFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Creates Slim 3 messages.
1414
*
1515
* @author Mika Tuupola <tuupola@appelsiini.net>
16+
*
17+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory
1618
*/
1719
final class SlimMessageFactory implements MessageFactory
1820
{

src/StreamFactory/DiactorosStreamFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Creates Diactoros streams.
1111
*
1212
* @author Михаил Красильников <m.krasilnikov@yandex.ru>
13+
*
14+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory
1315
*/
1416
final class DiactorosStreamFactory implements StreamFactory
1517
{

src/StreamFactory/GuzzleStreamFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Creates Guzzle streams.
99
*
1010
* @author Михаил Красильников <m.krasilnikov@yandex.ru>
11+
*
12+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
1113
*/
1214
final class GuzzleStreamFactory implements StreamFactory
1315
{

src/StreamFactory/SlimStreamFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Creates Slim 3 streams.
1111
*
1212
* @author Mika Tuupola <tuupola@appelsiini.net>
13+
*
14+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory
1315
*/
1416
final class SlimStreamFactory implements StreamFactory
1517
{

src/UriFactory/DiactorosUriFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Creates Diactoros URI.
1111
*
1212
* @author David de Boer <david@ddeboer.nl>
13+
*
14+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory
1315
*/
1416
final class DiactorosUriFactory implements UriFactory
1517
{

src/UriFactory/GuzzleUriFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Creates Guzzle URI.
1010
*
1111
* @author David de Boer <david@ddeboer.nl>
12+
*
13+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
1214
*/
1315
final class GuzzleUriFactory implements UriFactory
1416
{

src/UriFactory/SlimUriFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Creates Slim 3 URI.
1111
*
1212
* @author Mika Tuupola <tuupola@appelsiini.net>
13+
*
14+
* @deprecated This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory
1315
*/
1416
final class SlimUriFactory implements UriFactory
1517
{

0 commit comments

Comments
 (0)