$container
$container : \Thelia\Action\The
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
validateForm(\Thelia\Form\BaseForm $aBaseForm, string $expectedMethod) : \Symfony\Component\Form\Form
Validate a BaseForm
| \Thelia\Form\BaseForm | $aBaseForm | the form |
| string | $expectedMethod | the expected method, POST or GET, or null for any of them |
is the form contains error, or the method is not the right one
Form the symfony form object
propagateFormError(\Thelia\Form\BaseForm $aBaseForm, string $error_message, \Thelia\Core\Event\ActionEvent $event)
Propagate a form error in the action event
| \Thelia\Form\BaseForm | $aBaseForm | the form |
| string | $error_message | an error message that may be displayed to the customer |
| \Thelia\Core\Event\ActionEvent | $event | the action event |