8000 Move PSR warning to Promise section and make note · php-http/documentation@54ab9c4 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 54ab9c4

Browse files
committed
Move PSR warning to Promise section and make note
1 parent 305abcc commit 54ab9c4

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)
0