From 305d615ebc4a274be81052081e5e9a2665708661 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Fri, 16 Sep 2016 11:36:11 +0200 Subject: [PATCH] avoid confusion about request --- plugins/build-your-own.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/build-your-own.rst b/plugins/build-your-own.rst index 178ed6f..3e85bb0 100644 --- a/plugins/build-your-own.rst +++ b/plugins/build-your-own.rst @@ -25,13 +25,9 @@ This interface defines the ``handleRequest`` method that allows to modify behavi */ public function handleRequest(RequestInterface $request, callable $next, callable $first); -The ``$request`` comes from an upstream plugin or Plugin Client itself. +The ``$request`` comes from an upstream plugin or ``PluginClient`` itself. You can replace it and pass a new version downstream if you need. -.. note:: - - Be aware that the request is immutable. - The ``$next`` callable is the next plugin in the execution chain. When you need to call it, you must pass the ``$request`` as the first argument of this callable.