From 07396f6c4aa2d90884566ae9d786ddaab18da8c8 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 4 Oct 2018 20:23:57 +0200 Subject: [PATCH] Optimized todos --- application/src/Controller/LawController.php | 42 ++++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/application/src/Controller/LawController.php b/application/src/Controller/LawController.php index c7e8512..12e5ec2 100644 --- a/application/src/Controller/LawController.php +++ b/application/src/Controller/LawController.php @@ -6,37 +6,53 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use App\Entity\Law; + /** * * @author kevinfrantz - * + * @todo Implement security! */ class LawController extends AbstractEntityController { + /** + * * @Route("/law/{id}.{_format}", defaults={"_format"="html"}) */ - public function show():Response{ - //Implement - } - + public function show(): Response + { /** + * + * @todo Implement function! + */ + } + + /** + * * @Route("/law/{id}/right.{_format}", defaults={"_format"="html"}) */ - public function right(int $id):RedirectResponse{ - //Implement - } - + public function right(int $id): RedirectResponse + { /** + * + * @todo Implement function! + */ + } + + /** + * * @Route("/law/{id}/node.{_format}", defaults={"_format"="html"}) */ - public function node(int $id):RedirectResponse{ - //Implement + public function node(int $id): RedirectResponse + { + /** + * + * @todo Implement function! + */ } - + protected function setEntityName(): void { $this->entityName = Law::class; } - } \ No newline at end of file