CallbackHandler
A handler for a event, event, filterchain, etc. Abstracts PHP callbacks, primarily to allow for lazy-loading and ensuring availability of default arguments (currying).
Constructor
Parameters: |
|
---|
Registers the callback provided in the constructor
If you have pecl/weakref {@see http://pecl.php.net/weakref} installed, this method provides additional behavior.
If a callback is a functor, or an array callback composing an object instance, this method will pass the object to a WeakRef instance prior to registering the callback.
Parameters: | callable – |
---|---|
Throws ExceptionInvalidCallbackException: | |
Return type: | void |
Invoke handler
Parameters: | array – Arguments to pass to callback |
---|---|
Return type: | mixed |