infinito/application/src/Controller/LawController.php

42 lines
940 B
PHP
Raw Normal View History

2018-10-03 18:20:53 +02:00
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Routing\Annotation\Route;
2018-10-03 18:55:33 +02:00
use Symfony\Component\HttpFoundation\Request;
use App\Entity\Law;
2018-10-03 18:20:53 +02:00
/**
*
* @author kevinfrantz
*
*/
2018-10-03 18:55:33 +02:00
class LawController extends AbstractEntityController
2018-10-03 18:20:53 +02:00
{
/**
* @Route("/law/{id}.{_format}", defaults={"_format"="html"})
*/
public function show():Response{
//Implement
}
/**
* @Route("/law/{id}/right.{_format}", defaults={"_format"="html"})
*/
public function right(int $id):RedirectResponse{
//Implement
}
/**
* @Route("/law/{id}/node.{_format}", defaults={"_format"="html"})
*/
public function node(int $id):RedirectResponse{
//Implement
}
2018-10-03 18:55:33 +02:00
protected function setEntityName(): void
{
$this->entityName = Law::class;
}
2018-10-03 18:20:53 +02:00
}