mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
Configure routes using annotation
This commit is contained in:
@@ -24,6 +24,7 @@ class StatusController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* Creates a new Status entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/event/status/create", name="chill_event_admin_status_create", methods={"POST"})
|
||||
*/
|
||||
public function createAction(Request $request)
|
||||
{
|
||||
@@ -47,6 +48,7 @@ class StatusController extends AbstractController
|
||||
|
||||
/**
|
||||
* Deletes a Status entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/event/status/{id}/delete", name="chill_event_admin_status_delete", methods={"POST", "DELETE"})
|
||||
*/
|
||||
public function deleteAction(Request $request, mixed $id)
|
||||
{
|
||||
@@ -70,6 +72,7 @@ class StatusController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing Status entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/event/status/{id}/edit", name="chill_event_admin_status_edit")
|
||||
*/
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
@@ -93,6 +96,7 @@ class StatusController extends AbstractController
|
||||
|
||||
/**
|
||||
* Lists all Status entities.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/event/status/", name="chill_event_admin_status", options={null})
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
@@ -107,6 +111,7 @@ class StatusController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to create a new Status entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/event/status/new", name="chill_event_admin_status_new")
|
||||
*/
|
||||
public function newAction()
|
||||
{
|
||||
@@ -121,6 +126,7 @@ class StatusController extends AbstractController
|
||||
|
||||
/**
|
||||
* Finds and displays a Status entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/event/status/{id}/show", name="chill_event_admin_status_show")
|
||||
*/
|
||||
public function showAction(mixed $id)
|
||||
{
|
||||
@@ -142,6 +148,7 @@ class StatusController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing Status entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/event/status/{id}/update", name="chill_event_admin_status_update", methods={"POST", "PUT"})
|
||||
*/
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user