mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-19 02:17:45 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -44,9 +44,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Creates a new CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/create", name="customfieldsgroup_create")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/create', name: 'customfieldsgroup_create')]
|
||||
public function createAction(Request $request)
|
||||
{
|
||||
$entity = new CustomFieldsGroup();
|
||||
@@ -75,9 +74,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/{id}/edit", name="customfieldsgroup_edit")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/edit', name: 'customfieldsgroup_edit')]
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
@@ -98,9 +96,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Lists all CustomFieldsGroup entities.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/", name="customfieldsgroup")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/', name: 'customfieldsgroup')]
|
||||
public function indexAction()
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
@@ -125,9 +122,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Set the CustomField Group with id $cFGroupId as default.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/makedefault", name="customfieldsgroup_makedefault")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/makedefault', name: 'customfieldsgroup_makedefault')]
|
||||
public function makeDefaultAction(Request $request)
|
||||
{
|
||||
$form = $this->createMakeDefaultForm(null);
|
||||
@@ -170,9 +166,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to create a new CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/new", name="customfieldsgroup_new")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/new', name: 'customfieldsgroup_new')]
|
||||
public function newAction()
|
||||
{
|
||||
$entity = new CustomFieldsGroup();
|
||||
@@ -235,9 +230,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Finds and displays a CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/{id}/show", name="customfieldsgroup_show")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/show', name: 'customfieldsgroup_show')]
|
||||
public function showAction(mixed $id)
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
@@ -259,9 +253,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing CustomFieldsGroup entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfieldsgroup/{id}/update", name="customfieldsgroup_update")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/update', name: 'customfieldsgroup_update')]
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
|
||||
Reference in New Issue
Block a user