/** * @Route("/ajax-going/{id}", name="event_ajax_going", requirements={"id" = "\d+"}) * @Template("ConnectionEventBundle:Event:going_interested.html.twig") * @ParamConverter("Event", class="ConnectionEventBundle:Event") */ public function goingAjaxAction(Event $event, Request $request) { if (!$request->isXmlHttpRequest()) { throw new AccessDeniedException(); } return array('participants' => $event->getParticipants()); }
/** * {@inheritDoc} */ public function getParticipants() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getParticipants', array()); return parent::getParticipants(); }