Hello,

I would like to post data to different events, depending on the input. If the target event doesn't exist, I should process the request locally, but I don't know any ways to check the existence of an event.

What I would like to do:

if ($_[KERNEL]->event_exists($session, $event_name)) {
   $_[KERNEL]->post($session, $event_name, $args);
} else {
   do something else
}

How should I do that?

Thanks,

Reply via email to