22 lines
575 B
PHP
22 lines
575 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
class DefaultController extends AbstractController
|
|
{
|
|
/**
|
|
* @Route("/", name="homepage")
|
|
*/
|
|
public function indexAction(Request $request)
|
|
{
|
|
// 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,
|
|
]);
|
|
}
|
|
}
|