$securityContext
$securityContext : \Thelia\Action\Thelia\Core\Security\SecurityContext
__construct(\Thelia\Core\Security\SecurityContext $securityContext)
| \Thelia\Core\Security\SecurityContext | $securityContext |
create(\Thelia\Core\Event\ActionEvent $event)
| \Thelia\Core\Event\ActionEvent | $event |
modify(\Thelia\Core\Event\ActionEvent $event)
| \Thelia\Core\Event\ActionEvent | $event |
logout(\Thelia\Core\Event\ActionEvent $event)
Perform user logout. The user is redirected to the provided view, if any.
| \Thelia\Core\Event\ActionEvent | $event |
login(\Thelia\Core\Event\ActionEvent $event)
Perform user login. On a successful login, the user is redirected to the URL found in the success_url form parameter, or / if none was found.
If login is not successfull, the same view is dispolyed again.
| \Thelia\Core\Event\ActionEvent | $event |
changePassword(\Thelia\Core\Event\ActionEvent $event)
| \Thelia\Core\Event\ActionEvent | $event |
getSubscribedEvents() : array
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
The event names to listen to
processSuccessfulLogin(\Thelia\Core\Event\ActionEvent $event, \Thelia\Model\Customer $user, \Thelia\Form\BaseForm $form, $sendLoginEvent)
Stores the current user in the security context, and redirect to the success_url.
| \Thelia\Core\Event\ActionEvent | $event | |
| \Thelia\Model\Customer | $user | the logged user |
| \Thelia\Form\BaseForm | $form | |
| $sendLoginEvent |
getSecurityContext() : \Thelia\Core\Security\SecurityContext
Return the security context, beeing sure that we're in the CONTEXT_FRONT_OFFICE context
the security context