Skip to content

Instantly share code, notes, and snippets.

View DavidAntaramian's full-sized avatar

David Antaramian DavidAntaramian

View GitHub Profile
<?php
$event = 0;
try {
// attempts to get an event object from the Event library
// using the original command as defined in the WaiCommand
$event = Event::get_event($command->get_original(), $_SESSION['instance_id']);
// actually handles the event and returns the text to be rendered
return $event->handle();