From 54ab9c4d948eab9b2c01a3527b5030354ac078cf Mon Sep 17 00:00:00 2001 From: David de Boer Date: Sun, 3 Jan 2016 13:13:51 +0100 Subject: [PATCH] Move PSR warning to Promise section and make note --- components/promise.rst | 7 +++++++ httplug.rst | 8 +------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/components/promise.rst b/components/promise.rst index 0ec5da3..e33c821 100644 --- a/components/promise.rst +++ b/components/promise.rst @@ -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 diff --git a/httplug.rst b/httplug.rst index 10f2b7a..eb59051 100644 --- a/httplug.rst +++ b/httplug.rst @@ -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 ` for a concrete example. .. toctree:: @@ -32,4 +27,3 @@ See the :doc:``tutorial`` for a concrete example. Migrating Virtual Package -.. _`PSR is released`: https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs