/** * @param ReceiverGroup $receiverGroup * @throws \TYPO3\Flow\Persistence\Exception\IllegalObjectTypeException */ public function deleteReceiverGroupAction(ReceiverGroup $receiverGroup) { $this->receiverGroupRepository->remove($receiverGroup); $this->redirect('index'); }