As of PHP 5.4, Closures , when declared within the context of a method of the class (other than static methods), automatically inherits the funções anônimas as a reference of the class that contains it.
Example:
class StackOver...
asked by
27.01.2015 / 13:07