src/AppBundle/Controller/Admin/NotificationController.php
/**
     * Lists all Notification entities.
     *
     * This controller responds to two different routes with the same URL:
     *   * 'admin_post_index' is the route with a name that follows the same
     *     structure as the rest of the controllers of this class.
     *   * 'admin_index' is a nice shortcut to the backend homepage. This allows
     *     to create simpler links in the templates. Moreover, in the future we
     *     could move this annotation to any other controller while maintaining
     *     the route name and therefore, without breaking any existing link.
     *
     * @Route("/", name="notification_index")
     * @Route("/", name="admin_notification_index")
     * @Method("GET")
     */
Lists all Notification entities.
This controller responds to two different routes with the same URL:
'admin_post_index' is the route with a name that follows the same
structure as the rest of the controllers of this class.
'admin_index' is a nice shortcut to the backend homepage. This allows
to create simpler links in the templates. Moreover, in the future we
could move this annotation to any other controller while maintaining
the route name and therefore, without breaking any existing link.


Lists all Notification entities . This controller responds to two different routes with the same URL : ' admin_post_index ' is the route with a name that follows the same structure as the rest of the controllers of this class . ' admin_index ' is a nice shortcut to the backend homepage . This allows to create simpler links in the templates . Moreover in the future we could move this annotation to any other controller while maintaining the route name and therefore without breaking any existing link .
public function indexAction()
    {
        $em = $this->getDoctrine()->getManager();
        $notification = $em->getRepository(Notification::class)->findAll();
        return $this->render('admin/notification/notification-list.html.twig', ['notifications' => $notification]);
    }
public function indexAction ( ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ notification = $ em -> getRepository ( Notification :: class ) -> findAll ( ) ; return $ this -> render ( 'admin/notification/notification-list.html.twig' , [ 'notifications' => $ notification ] ) ; }
Lists all Notification entities.
Lists all Notification entities .