src/AppBundle/Controller/DefaultController.php line 14

Open in your IDE?
  1. <?php
  2. namespace AppBundle\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class DefaultController extends Controller
  7. {
  8.     /**
  9.      * @Route("/", name="homepage")
  10.      */
  11.     public function indexAction(Request $request)
  12.     {
  13.         // replace this example code with whatever you need
  14.         return $this->render('default/index.html.twig', [
  15.             'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR,
  16.         ]);
  17.     }
  18. }