CONTEXT_FRONT_OFFICE
CONTEXT_FRONT_OFFICE
A simple security manager, in charge of checking user
__construct(\Thelia\Core\HttpFoundation\Request $request)
| \Thelia\Core\HttpFoundation\Request | $request |
getUser() : \Thelia\Core\Security\User\UserInterface|null
Gets the currently authenticated user in the current context, or null if none is defined
A UserInterface instance or null if no user is available
setUser(\Thelia\Core\Security\User\UserInterface $user)
Sets the authenticated user.
| \Thelia\Core\Security\User\UserInterface | $user | A UserInterface, or null if no further user should be stored |