src/AppBundle/Controller/Admin/NotificationController.php
/**
     * Finds and displays a Notification.
     *
     * @Route("/{id}", requirements={"id": "\d+"}, name="admin_notification_show")
     * @Method("GET")
     */
Finds and displays a Notification.
Finds and displays a Notification .
public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $notification = $em->getRepository(Notification::class)->find($id);
        $countries = $em->getRepository(Country::class)->getCountries($id);
        return $this->render('admin/notification/show.html.twig', [
            'notification'  => $notification,
            'countries'     => $countries,
        ]);
    }
public function showAction ( $ id ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ notification = $ em -> getRepository ( Notification :: class ) -> find ( $ id ) ; $ countries = $ em -> getRepository ( Country :: class ) -> getCountries ( $ id ) ; return $ this -> render ( 'admin/notification/show.html.twig' , [ 'notification' => $ notification , 'countries' => $ countries , ] ) ; }
Finds and displays a Notification.
Finds and displays a Notification .