The SuperClosure is a wrapper for a regular PHP closure that allows serialization, code retrieval, and easy reflection. PHP closures cannot be serialized by normal means, so the SuperClosure enables serialization by using reflection and tokenizing/parsing to get all the information about the closure
... [More] it needs to recreate it. This is includes the actual code defining the function and the names and values of any variables in the use statement of the closure. [Less]
This site uses cookies to give you the best possible experience.
By using the site, you consent to our use of cookies.
For more information, please see our
Privacy Policy