// set object data
$event->setObject(new UserNotification(null, array()), $notificationObject, $userProfile, $additionalData);
- EventHandler::getInstance()->fireAction($this, 'fireEvent', array(
+ $parameters = array(
'eventName' => $eventName,
'objectType' => $objectType,
'notificationObject' => $notificationObject,
'objectTypeObject' => $objectTypeObject,
'userProfile' => $userProfile,
'event' => $event
- ));
+ );
+ EventHandler::getInstance()->fireAction($this, 'fireEvent', $parameters);
// find existing notifications
$conditions = new PreparedStatementConditionBuilder();