示例#1
0
 /**
  * Automatically generated run method
  * 
  * @param Request $request
  * @return Response
  */
 public function run(Request $request)
 {
     $body = Json::decode($request->getContent());
     if (!isset($body['data'])) {
         throw new InvalidParameterException();
     }
     $data = $body['data'];
     $id = $this->getParam('id');
     $domain = new EventDomain($this->getServiceContainer());
     $payload = $domain->updateStartgroup($id, $data);
     return $this->responder->run($request, $payload);
 }