Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ace1a8a

Browse files
committed
Merge pull request #63 from php-http/psr-notice
Move PSR warning to Promise section and make note
2 parents 305abcc + 54ab9c4 commit ace1a8a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

components/promise.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ Promise
44
Promise used for asynchronous HTTP requests.
55

66
This will eventually be removed/deprecated and replaced with the upcoming Promise PSR.
7+
8+
.. note::
9+
10+
Contract for the ``Http\Promise\Promise`` is temporary until `PSR is released`_.
11+
Once it is out, we will use this PSR in the main client and deprecate the old contract.
12+
13+
.. _`PSR is released`: https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs

httplug.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ There is also the ``Http\Client\HttpAsyncClient`` which provides the
1717
The promise allows to specify handlers for a PSR-7 ``ResponseInterface``
1818
or an exception that implements ``Http\Client\Exception``.
1919

20-
.. warning::
21-
22-
Contract for the ``Http\Promise\Promise`` is temporary until `PSR is released`_.
23-
Once it is out, we will use this PSR in the main client and deprecate the old contract.
24-
25-
See the :doc:``tutorial`` for a concrete example.
20+
See the :doc:`tutorial </httplug/tutorial>` for a concrete example.
2621

2722

2823
.. toctree::
@@ -32,4 +27,3 @@ See the :doc:``tutorial`` for a concrete example.
3227
Migrating <httplug/migrating>
3328
Virtual Package <httplug/virtual-package>
3429

35-
.. _`PSR is released`: https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs

0 commit comments

Comments
 (0)