mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 06:44:59 +00:00
Configure routes using annotation
This commit is contained in:
@@ -24,6 +24,7 @@ class CenterController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* Creates a new Center entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/center/create", name="admin_center_create", methods={"POST"})
|
||||
*/
|
||||
public function createAction(Request $request)
|
||||
{
|
||||
@@ -47,6 +48,7 @@ class CenterController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing Center entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/center/{id}/edit", name="admin_center_edit")
|
||||
*/
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
@@ -68,6 +70,7 @@ class CenterController extends AbstractController
|
||||
|
||||
/**
|
||||
* Lists all Center entities.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/center/", name="admin_center")
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
@@ -82,6 +85,7 @@ class CenterController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to create a new Center entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/center/new", name="admin_center_new")
|
||||
*/
|
||||
public function newAction()
|
||||
{
|
||||
@@ -114,6 +118,7 @@ class CenterController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing Center entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/center/{id}/update", name="admin_center_update", methods={"POST", "PUT"})
|
||||
*/
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user