Releases: affinity4/magic
Releases · affinity4/magic
1.0.0
v1.0.0 Beta Realease
Adding tests for creating event listener, adding event handlers and firing event
v1 Alpha Release
- Added snake_case magic property support in addition to camelCase magic property support
- Test for magic properties writtten
Invokable Classes as Event Handlers
Adding ability to use classes as event handlers
// ...
class HandleOnEvent
{
// ...
public function __invoke($args) {/* ...event handler */}
// ...
}
$SomeClassWIthEvents = new SomeClassWIthEvents;
$SomeClassWithEvents->onEvent[] = (new HandleOnEvent)('args normally passed to Closure')
Initial Release
0.0.1 Adding docs and Magic trait