Draft record view (bibliography)

This commit is contained in:
2024-10-31 10:24:28 +01:00
parent a5b7069679
commit 6b0fbce7ee
8 changed files with 287 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Controller;
use App\Entity\Bibliography;
//use App\Security\Voter\VocabVoter;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
//use Symfony\Component\Security\Core\Exception\AccessDeniedException;
class BibliographyController extends AbstractController
{
#[Route('/bibliography/{id}', name: 'app_bibliography')]
public function index(Bibliography $bibliography, EntityManagerInterface $em): Response
{
return $this->render('bibliography/index.html.twig', [
'controller_name' => 'BibliographyController',
'record' => $bibliography,
]);
}
}