diff --git a/src/Controller/IndexController.php b/src/Controller/IndexController.php index dbf9b91..fe65e83 100644 --- a/src/Controller/IndexController.php +++ b/src/Controller/IndexController.php @@ -47,12 +47,9 @@ class IndexController extends AbstractController MerBeDMRepository $repoDm ): Response { - dump('MerServiceRepository->findByOfferId'); - dump($repo->findByOfferId($request->query->get('offer_id'))); - - dump('MerBeDMRepository->findByOfferId'); - dump($repoDm->findByOfferId($request->query->get('offer_id'))); - - return $this->render('index/notificationDm.html.twig'); + return $this->render('index/notificationDm.html.twig', [ + 'serviceRepo' => $repo->findByOfferId($request->query->get('offer_id')), + 'beDmRepo' => $repoDm->findByOfferId($request->query->get('offer_id')) + ]); } } diff --git a/templates/index/notificationDm.html.twig b/templates/index/notificationDm.html.twig index e54b2df..ac8c6b5 100644 --- a/templates/index/notificationDm.html.twig +++ b/templates/index/notificationDm.html.twig @@ -4,4 +4,10 @@ {% block body %}

check profiler output

+ +

MerServiceRepository->findByOfferId

+ {{ dump(serviceRepo) }} + +

MerBeDMRepository->findByOfferId

+ {{ dump(beDmRepo) }} {% endblock %}