Hi @JoeBengalen,
BTW; Never retrieve the request from the container. Always use the one given to the callable.
originally commented at GitHub. moved here, to make less cluttered there @github.
Yes. I prefer to use the given nearest $response object where ever applicable.
There are circumstances we need access globally / out of call back scope.
For example please see this thread ; There, inside function addRoutesForCurrentPath($app){ //... }
.
Hope, in such situations, its perfectly valid to retrieve the request
from the container
.
Thank you
Susanth K