collection-crud/src/Controller/DefaultController.php

23 lines
632 B
PHP
Raw Normal View History

2018-07-18 11:35:27 -04:00
<?php declare(strict_types=1);
2017-11-30 15:06:13 -05:00
namespace App\Controller;
2017-11-30 15:06:13 -05:00
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
2020-06-02 16:08:08 -04:00
use Symfony\Component\HttpFoundation\Response;
2018-07-11 09:18:46 -04:00
use Symfony\Component\Routing\Annotation\Route;
2017-11-30 15:06:13 -05:00
use Symfony\Component\HttpFoundation\Request;
class DefaultController extends AbstractController
2017-11-30 15:06:13 -05:00
{
/**
* @Route("/", name="homepage")
*/
2020-06-02 16:08:08 -04:00
public function indexAction(Request $request): Response
2017-11-30 15:06:13 -05:00
{
// replace this example code with whatever you need
return $this->render('default/index.html.twig', [
'base_dir' => realpath($this->getParameter('kernel.project_dir')) . DIRECTORY_SEPARATOR,
]);
}
}