BConnect Business - Reference PHP

BusinessTypeController extends AbstractController
in package

FinalYes
Attributes
#[IsGranted]
'ROLE_SUPPORT'
#[Route]
'/business-type'

Table of Contents

Methods

edit()  : Response
Edits an existing BusinessType entity.
index()  : Response
Displays a list of business types and handles the creation of a new business type.

Methods

edit()

Edits an existing BusinessType entity.

public edit(Request $request, BusinessType $businessType, EntityManagerInterface $entityManager) : Response

This method handles the form submission for editing a BusinessType entity. If the form is submitted and valid, the changes are persisted to the database.

Parameters
$request : Request

The current request instance.

$businessType : BusinessType

The BusinessType entity to be edited.

$entityManager : EntityManagerInterface

The entity manager for persisting changes.

Attributes
#[Route]
'/{id}/edit'
$name: 'app_business_type_edit'
$methods: ['GET', 'POST']
Return values
Response

The response object containing the rendered view or a redirection.

index()

Displays a list of business types and handles the creation of a new business type.

public index(BusinessTypeRepository $businessTypeRepository, EntityManagerInterface $entityManager, Request $request) : Response
Parameters
$businessTypeRepository : BusinessTypeRepository

Repository for accessing business types.

$entityManager : EntityManagerInterface

The entity manager for persisting data.

$request : Request

The current HTTP request.

Attributes
#[Route]
'/'
$name: 'app_business_type_index'
Return values
Response

The HTTP response containing the rendered view.

On this page

Search results