Skip to content

Move PSR warning to Promise section and make note #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2016
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 components/promise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ Promise
Promise used for asynchronous HTTP requests.

This will eventually be removed/deprecated and replaced with the upcoming Promise PSR.

.. note::

Contract for the ``Http\Promise\Promise`` is temporary until `PSR is released`_.
Once it is out, we will use this PSR in the main client and deprecate the old contract.

.. _`PSR is released`: https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs
8 changes: 1 addition & 7 deletions httplug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ There is also the ``Http\Client\HttpAsyncClient`` which provides the
The promise allows to specify handlers for a PSR-7 ``ResponseInterface``
or an exception that implements ``Http\Client\Exception``.

.. warning::

Contract for the ``Http\Promise\Promise`` is temporary until `PSR is released`_.
Once it is out, we will use this PSR in the main client and deprecate the old contract.

See the :doc:``tutorial`` for a concrete example.
See the :doc:`tutorial </httplug/tutorial>` for a concrete example.


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

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