src/WPXToolsBundle/Controller/DefaultController.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace WPXToolsBundle\Controller;
  4. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  5. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  6. class DefaultController extends Controller
  7. {
  8.     /**
  9.      * @Route("/", name="dashboard")
  10.      * @Route("/dashboard", name="dashboard_second_path")
  11.      * @return \Symfony\Component\HttpFoundation\Response
  12.      */
  13.     public function indexAction()
  14.     {
  15.             return $this->render('default/index.html.twig',[
  16.                 'title' => 'Alice Dashboard',
  17.                 'notificationWidget' => $this->get('user_notification')->notificationsWidget
  18.             ]);
  19.     }
  20. }