params['eventId'] ) ) { $eventMapper = new EventMapper(); $event = $eventMapper->fetchById( $this->params['eventId'], true ); } else { $event = Event::newFromArray( $this->params['eventData'] ); } NotificationController::notify( $event, false ); return true; } }