eventDispatcher->dispatch(new ApplicationRejectedEvent($applicationCheckDto), ApplicationRejectedEvent::NAME); $application->setStatus(Application::STATUS_REJECTED); $this->entityManager->flush(); $this->addFlash('success', 'Die Bewerbung wurde abgelehnt'); $this->logger->info('Reject application', [ 'application' => $application->getUuid(), ]); return $this->redirectToRoute('app_admin_assignment_detail', [ 'uuid' => $application->getAssignment()->getUuid(), ]); } }