mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Configure routes using annotation
This commit is contained in:
@@ -25,6 +25,7 @@ use Symfony\Component\Form\Extension\Core\Type\FormType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
use function in_array;
|
||||
|
||||
@@ -42,6 +43,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Creates a new CustomFieldsGroup entity.
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/create", name="customfieldsgroup_create")
|
||||
*/
|
||||
public function createAction(Request $request)
|
||||
{
|
||||
@@ -71,6 +73,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing CustomFieldsGroup entity.
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/{id}/edit", name="customfieldsgroup_edit")
|
||||
*/
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
@@ -92,6 +95,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Lists all CustomFieldsGroup entities.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/", name="customfieldsgroup")
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
@@ -117,6 +122,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Set the CustomField Group with id $cFGroupId as default.
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/makedefault", name="customfieldsgroup_makedefault")
|
||||
*/
|
||||
public function makeDefaultAction(Request $request)
|
||||
{
|
||||
@@ -162,6 +168,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to create a new CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/new", name="customfieldsgroup_new")
|
||||
*/
|
||||
public function newAction()
|
||||
{
|
||||
@@ -225,6 +233,9 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Finds and displays a CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/{id}/show", name="customfieldsgroup/show")
|
||||
*
|
||||
*/
|
||||
public function showAction(mixed $id)
|
||||
{
|
||||
@@ -247,6 +258,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/{id}/update", name="customfieldsgroup/update")
|
||||
*/
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user