mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
Configure routes using annotation
This commit is contained in:
@@ -59,6 +59,9 @@ final class PersonController extends AbstractController
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/general/edit", name="chill_person_general_edit")
|
||||
*/
|
||||
public function editAction($person_id, Request $request)
|
||||
{
|
||||
$person = $this->_getPerson($person_id);
|
||||
@@ -157,6 +160,7 @@ final class PersonController extends AbstractController
|
||||
*
|
||||
* The next post compare the data with previous one and, if yes, show a
|
||||
* review page if there are "alternate persons".
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/new", name="chill_person_new")
|
||||
*/
|
||||
public function newAction(Request $request): Response
|
||||
{
|
||||
@@ -252,6 +256,9 @@ final class PersonController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/general", name="chill_person_view")
|
||||
*/
|
||||
public function viewAction(int $person_id)
|
||||
{
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
Reference in New Issue
Block a user