mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Added AbstractEntityController
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use App\Entity\Law;
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class LawController extends AbstractController
|
||||
class LawController extends AbstractEntityController
|
||||
{
|
||||
/**
|
||||
* @Route("/law/{id}.{_format}", defaults={"_format"="html"})
|
||||
@@ -33,4 +33,10 @@ class LawController extends AbstractController
|
||||
public function node(int $id):RedirectResponse{
|
||||
//Implement
|
||||
}
|
||||
|
||||
protected function setEntityName(): void
|
||||
{
|
||||
$this->entityName = Law::class;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user