コード例 #1
0
 /**
  * Automatically generated run method
  * 
  * @param Request $request
  * @return Response
  */
 public function run(Request $request)
 {
     $id = $this->getParam('id');
     $domain = new EventDomain($this->getServiceContainer());
     $payload = $domain->read($id);
     return $this->responder->run($request, $payload);
 }
コード例 #2
0
ファイル: EventPaginateAction.php プロジェクト: iuf/junia
 /**
  * Automatically generated run method
  * 
  * @param Request $request
  * @return Response
  */
 public function run(Request $request)
 {
     $params = new Parameters($request->query->all());
     $domain = new EventDomain($this->getServiceContainer());
     $payload = $domain->paginate($params);
     return $this->responder->run($request, $payload);
 }
コード例 #3
0
ファイル: EventCreateAction.php プロジェクト: iuf/junia
 /**
  * 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'];
     $domain = new EventDomain($this->getServiceContainer());
     $payload = $domain->create($data);
     return $this->responder->run($request, $payload);
 }
コード例 #4
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->setPerformanceExecutionStatisticId($id, $data);
     return $this->responder->run($request, $payload);
 }