get['TicketRetriever']; output($ticketRetriever->getTicketById($id, $hesk_settings, $userContext)); } function post() { global $applicationContext, $hesk_settings, $modsForHeskSettings, $userContext; /* @var $ticketCreator TicketCreator */ $ticketCreator = $applicationContext->get[TicketCreator::class]; //-- TODO Parse POST data $ticketCreator->createTicketByCustomer(null, $hesk_settings, $modsForHeskSettings, $userContext); } }