Revision of own events #169

Events should be adjusted

Bislang:


Code
$parameters = [
    'value' => \random_int(1, 1024),
];

EventHandler::getInstance()->fireAction($this, 'valueAvailable', $parameters);


Absofort

Code
EventHandler::getInstance()->fire(new ValueAvailable(\random_int(1, 1024)));

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!