mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Applied CS fixer
This commit is contained in:
@@ -1,64 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use App\Entity\Meta\Law;
|
||||
use App\Entity\Meta\LawInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
* @todo Implement security!
|
||||
*/
|
||||
class LawController extends AbstractEntityController
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @Route("/law/{id}.{_format}", defaults={"_format"="html"})
|
||||
*/
|
||||
public function show(int $id): Response
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var LawInterface $law
|
||||
* @var LawInterface
|
||||
*/
|
||||
$law = $this->loadEntityById($id);
|
||||
$view = $this->view($law, 200)
|
||||
->setTemplate('law/view/standard.html.twig')
|
||||
->setTemplateVar('law');
|
||||
|
||||
return $this->handleView($view);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @Route("/law/{id}/right.{_format}", defaults={"_format"="html"})
|
||||
*/
|
||||
public function right(int $id): RedirectResponse
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @todo Implement function!
|
||||
*/
|
||||
/*
|
||||
*
|
||||
* @todo Implement function!
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @Route("/law/{id}/node.{_format}", defaults={"_format"="html"})
|
||||
*/
|
||||
public function node(int $id): RedirectResponse
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @todo Implement function!
|
||||
*/
|
||||
/*
|
||||
*
|
||||
* @todo Implement function!
|
||||
*/
|
||||
}
|
||||
|
||||
protected function setEntityName(): void
|
||||
{
|
||||
$this->entityName = Law::class;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user