CRM_Utils_Hook::alterRedirect - Pass URL by reference
authorTim Otten <totten@civicrm.org>
Thu, 15 Mar 2018 05:19:49 +0000 (22:19 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 15 Mar 2018 05:23:38 +0000 (22:23 -0700)
commitca4ce861aadb00851d422bc21129dcde577493a1
tree0b18e9611d8caa16a9d6624f2bc75c9254653b70
parentf9bdf0620ef7c09cc0b1957a9dda6fa3bb7d3b3c
CRM_Utils_Hook::alterRedirect - Pass URL by reference

PSR-7 specifies that the `UriInterface` is immutable.  There are methods
like `withQuery(...)` which generate a *new instance*.

For the hook to support altering the URL, you must be able to replace the
`$url` with a newer instance.
CRM/Utils/Hook.php