Welcome Guest, Not a member yet? Register   Sign In
Need a little more info using Filters 'After'
#3

How do I do that in the 'after' function though?  How do I update the $response to edit the body?  Do I use a 'return' statement?  Call a function on the $response object?  I can't seem to find an example anywhere of how this would work for here:

Code:
public function after(RequestInterface $request, ResponseInterface $response)
{
  // how do I manipulate the $response var?
  // do I need to return the $response var or anything?
}
Reply


Messages In This Thread
RE: Need a little more info using Filters 'After' - by next2heaven - 11-15-2019, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB