Skip to content

Releases: affinity4/magic

1.0.0

15 Jun 23:58
Compare
Choose a tag to compare

Adding tests for Invokable classes as event handlers

v1.0.0 Beta Realease

15 Jun 21:34
Compare
Choose a tag to compare
v1.0.0 Beta Realease Pre-release
Pre-release

Adding tests for creating event listener, adding event handlers and firing event

v1 Alpha Release

15 Jun 18:00
Compare
Choose a tag to compare
v1 Alpha Release Pre-release
Pre-release
  • Added snake_case magic property support in addition to camelCase magic property support
  • Test for magic properties writtten

Invokable Classes as Event Handlers

15 Jun 04:54
Compare
Choose a tag to compare

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

14 Jun 00:49
Compare
Choose a tag to compare
0.0.1

Adding docs and Magic trait