/** * @param $channel * @param $message */ public function consume($channel, $message) { $this->logger->info('consuming message'); if ($channel == 'saveInBulk') { $this->service->saveInBulk($message); } }
/** * @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); }