ConfigController
extends AbstractController
in package
Application settings for the current point of sale.
Handles the configuration screen (identity, logo, selection of the users who receive email/SMS notifications) and the removal of a user from those notification lists.
Attributes
- #[IsGranted]
- 'IS_AUTHENTICATED_FULLY'
Table of Contents
Methods
- index() : Response
- This method is used to render and process the configuration form
- updateUserInConfig() : RedirectResponse
- This method is used to remove a user from the configuration settings
Methods
index()
This method is used to render and process the configuration form
public
index(Request $request, EntityManagerInterface $entityManager, UploaderService $uploaderService) : Response
Parameters
- $request : Request
- $entityManager : EntityManagerInterface
- $uploaderService : UploaderService
Attributes
- #[Route]
- '/config'
- $name: 'app.config'
Return values
ResponseupdateUserInConfig()
This method is used to remove a user from the configuration settings
public
updateUserInConfig(User $user, EntityManagerInterface $entityManager) : RedirectResponse
Parameters
- $user : User
- $entityManager : EntityManagerInterface
Attributes
- #[Route]
- '/delete/config/user/{id}'
- 'delete.config.user'