protected function processInvalidRecipients() { $responseHandler = $this->dispatcher->getResponseHandler(); $invalidRecipients = $responseHandler->getInvalidRecipients(); /** @var RecipientDevice $recipientDevice */ foreach ($invalidRecipients as $recipientDevice) { if ($recipientDevice->isInvalidRecipient()) { $this->deviceProvider->updateInvalidRecipients($recipientDevice->getIdentifier(), $recipientDevice->getIdentifierStatus()); } } }
/** * @ApiDoc( * description="Delete device", * resource = true, * statusCodes={ * 204="Returned when successful" * } * ) * * @param int $id the device id * * @return View */ public function deleteAction($id) { $this->deviceProvider->markAsDeleted($id); return new View(null, Codes::HTTP_NO_CONTENT); }