I'm not sure if this has been discussed before, but I'm wondering if there is a way to wrap closures nested within an existing object. We're trying to do some caching for a rather large object that includes vendor managed objects and don't have the ability to wrap closures within it directly.
Excellent lib - thanks for this!
I'm not sure if this has been discussed before, but I'm wondering if there is a way to wrap closures nested within an existing object. We're trying to do some caching for a rather large object that includes vendor managed objects and don't have the ability to wrap closures within it directly.
Are there any current plans or docs around this?
Maybe something like this would work with a check on
instanceof \Closure
... https://gist.github.com/mlconnor/2989980