mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -46,7 +46,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
* Creates a new CustomFieldsGroup entity.
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/create', name: 'customfieldsgroup_create')]
|
||||
public function createAction(Request $request)
|
||||
public function createAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$entity = new CustomFieldsGroup();
|
||||
$form = $this->createCreateForm($entity);
|
||||
@@ -76,7 +76,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
* Displays a form to edit an existing CustomFieldsGroup entity.
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/edit', name: 'customfieldsgroup_edit')]
|
||||
public function editAction(mixed $id)
|
||||
public function editAction(mixed $id): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
|
||||
@@ -98,7 +98,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
* Lists all CustomFieldsGroup entities.
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/', name: 'customfieldsgroup')]
|
||||
public function indexAction()
|
||||
public function indexAction(): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
|
||||
@@ -124,7 +124,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
* Set the CustomField Group with id $cFGroupId as default.
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/makedefault', name: 'customfieldsgroup_makedefault')]
|
||||
public function makeDefaultAction(Request $request)
|
||||
public function makeDefaultAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse
|
||||
{
|
||||
$form = $this->createMakeDefaultForm(null);
|
||||
$form->handleRequest($request);
|
||||
@@ -168,7 +168,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
* Displays a form to create a new CustomFieldsGroup entity.
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/new', name: 'customfieldsgroup_new')]
|
||||
public function newAction()
|
||||
public function newAction(): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$entity = new CustomFieldsGroup();
|
||||
$form = $this->createCreateForm($entity);
|
||||
@@ -189,7 +189,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
*
|
||||
* @param int $id
|
||||
*/
|
||||
public function renderFormAction($id, Request $request)
|
||||
public function renderFormAction($id, Request $request): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
|
||||
@@ -232,7 +232,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
* Finds and displays a CustomFieldsGroup entity.
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/show', name: 'customfieldsgroup_show')]
|
||||
public function showAction(mixed $id)
|
||||
public function showAction(mixed $id): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
|
||||
@@ -255,7 +255,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
* Edits an existing CustomFieldsGroup entity.
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/update', name: 'customfieldsgroup_update')]
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
public function updateAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
|
||||
@@ -358,7 +358,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
*
|
||||
* @return \Symfony\Component\Form\Form
|
||||
*/
|
||||
private function createMakeDefaultForm(?CustomFieldsGroup $group = null)
|
||||
private function createMakeDefaultForm(?CustomFieldsGroup $group = null): \Symfony\Component\Form\FormInterface
|
||||
{
|
||||
return $this->createFormBuilder($group, [
|
||||
'method' => 'POST',
|
||||
|
Reference in New Issue
Block a user