Exemplo n.º 1
0
 /**
  * @param $channel
  * @param $message
  */
 public function consume($channel, $message)
 {
     $this->logger->info('consuming message');
     if ($channel == 'saveInBulk') {
         $this->service->saveInBulk($message);
     }
 }
Exemplo n.º 2
0
 /**
  * @return Response
  */
 public function delete($id)
 {
     $organization = $this->organizationRepository->find($id);
     if (is_null($organization)) {
         return new Response(null, Response::HTTP_NOT_FOUND);
     }
     $this->service->delete($organization);
     return new Response(null, Response::HTTP_NO_CONTENT);
 }