createAction()
createAction()
The defaut administration controller. Basically, display the login form if user is not yet logged in, or back-office home page if the user is logged in.
processLogin(\Thelia\Model\Customer $customer, $event, $sendLogin)
| \Thelia\Model\Customer | $customer | |
| $event | ||
| $sendLogin |
dispatch(string $eventName, \Thelia\Core\Event\ActionEvent $event)
Dispatch a Thelia event to modules
| string | $eventName | a TheliaEvent name, as defined in TheliaEvents class |
| \Thelia\Core\Event\ActionEvent | $event | the event |
getParserContext() : \Thelia\Core\Template\ParserContext
Return the parser context,
getSecurityContext( $context) : \Thelia\Core\Security\SecurityContext
Return the security context, by default in admin mode.
| $context |
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