gtsrc/Catalog/Controller/HomeController.php line 17

Open in your IDE?
  1. <?php
  2. namespace Gt\Catalog\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class HomeController extends AbstractController
  7. {
  8.     /**
  9.      * Annotations are not working, the config is in yml files.
  10.      * @Route("/", name="home")
  11.      */
  12.     public function homeAction()
  13.     {
  14.         return $this->render('@Catalog/home/home.html.twig',[
  15.         ]);
  16.     }
  17.     /**
  18.      * Annotations are not working, the config is in yml files.
  19.      * @Route("/info", name="info")
  20.      */
  21.     public function infoAction()
  22.     {
  23.         phpinfo();
  24.         return new Response('');
  25.     }
  26. }