function atomCreate(Request $request, Application $app) { $atom = new EventListATOMCreateBuilder($app['currentSite'], $app['currentTimeZone']); $atom->setTitle('Virtual'); $atom->getEventRepositoryBuilder()->setVenueVirtualOnly(true); $atom->build(); return $atom->getResponse(); }
function atomCreate($slug, Request $request, Application $app) { if (!$this->build($slug, $request, $app)) { $app->abort(404, "Venue does not exist."); } $atom = new EventListATOMCreateBuilder($app['currentSite'], $app['currentTimeZone']); $atom->setTitle($this->parameters['venue']->getTitle()); $atom->getEventRepositoryBuilder()->setVenue($this->parameters['venue']); $atom->build(); return $atom->getResponse(); }
function atomCreate(Request $request, Application $app) { $atom = new EventListATOMCreateBuilder($app['currentSite'], $app['currentTimeZone']); $atom->build(); return $atom->getResponse(); }