mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Implemented routing for law show
This commit is contained in:
@@ -3,6 +3,7 @@ namespace App\Controller;
|
||||
|
||||
use App\Entity\EntityInterface;
|
||||
use FOS\RestBundle\Controller\FOSRestController;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -32,4 +33,11 @@ abstract class AbstractEntityController extends FOSRestController
|
||||
}
|
||||
return $entity;
|
||||
}
|
||||
|
||||
protected function redirectToRouteById(string $route, int $id): RedirectResponse
|
||||
{
|
||||
return $this->redirectToRoute($route, [
|
||||
'id' => $id
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user