accompanyingPeriodWorkEvaluationRepository = $accompanyingPeriodWorkEvaluationRepository; } public function getTemplate(Notification $notification, array $options = []): string { return 'ChillPersonBundle:AccompanyingCourseWork:showEvaluationInNotification.html.twig'; } public function getTemplateData(Notification $notification, array $options = []): array { return [ 'notification' => $notification, 'evaluation' => $this->accompanyingPeriodWorkEvaluationRepository->find($notification->getRelatedEntityId()), ]; } public function supports(Notification $notification, array $options = []): bool { return $notification->getRelatedEntityClass() === AccompanyingPeriodWorkEvaluation::class; } }