Skip to content

SuperClosure v2.0.0

Compare
Choose a tag to compare
@jeremeamia jeremeamia released this 27 Jan 08:52
· 76 commits to master since this release
  • Serializes closure bindings
  • Serializes recursive closures
  • Added Serializer object
    • Main class to interact with for serializing closures
    • Has special method for wrapping closures within an array/object
  • Changed the ClosureParser into ClosureAnalyzer
    • There are two kinds of analyzers:
      • AstAnalyzer - Uses PHPParser library; many features
      • TokenAnalyzer - Uses token_get_all(); fast
    • Analyzers return an array of data about a closure
  • Removed Jeremeamia from the namespace
  • Adopted PSR-4
  • Requires PHP 5.4+