Exemplo n.º 1
0
 /**
  * Automatically generated run method
  * 
  * @param Request $request
  * @return Response
  */
 public function run(Request $request)
 {
     $id = $this->getParam('id');
     $domain = new ContinentDomain($this->getServiceContainer());
     $payload = $domain->read($id);
     return $this->responder->run($request, $payload);
 }
Exemplo n.º 2
0
 /**
  * Automatically generated run method
  * 
  * @param Request $request
  * @return Response
  */
 public function run(Request $request)
 {
     $params = new Parameters($request->query->all());
     $domain = new ContinentDomain($this->getServiceContainer());
     $payload = $domain->paginate($params);
     return $this->responder->run($request, $payload);
 }