add some phpdoc to customer front controller
This commit is contained in:
@@ -40,6 +40,11 @@ use Thelia\Tools\URL;
|
|||||||
use Thelia\Log\Tlog;
|
use Thelia\Log\Tlog;
|
||||||
use Thelia\Core\Security\Exception\WrongPasswordException;
|
use Thelia\Core\Security\Exception\WrongPasswordException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class CustomerController
|
||||||
|
* @package Thelia\Controller\Front
|
||||||
|
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
||||||
|
*/
|
||||||
class CustomerController extends BaseFrontController
|
class CustomerController extends BaseFrontController
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -146,11 +151,10 @@ class CustomerController extends BaseFrontController
|
|||||||
$message = false;
|
$message = false;
|
||||||
|
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
$customerLoginForm = new CustomerLogin($request);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$customerLoginForm = new CustomerLogin($request);
|
|
||||||
|
|
||||||
$form = $this->validateForm($customerLoginForm, "post");
|
$form = $this->validateForm($customerLoginForm, "post");
|
||||||
|
|
||||||
$authenticator = new CustomerUsernamePasswordFormAuthenticator($request, $customerLoginForm);
|
$authenticator = new CustomerUsernamePasswordFormAuthenticator($request, $customerLoginForm);
|
||||||
@@ -190,8 +194,6 @@ class CustomerController extends BaseFrontController
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform customer logout.
|
* Perform customer logout.
|
||||||
*
|
|
||||||
* @param Customer $customer
|
|
||||||
*/
|
*/
|
||||||
public function logoutAction()
|
public function logoutAction()
|
||||||
{
|
{
|
||||||
@@ -203,6 +205,11 @@ class CustomerController extends BaseFrontController
|
|||||||
$this->redirect(URL::getIndexPage());
|
$this->redirect(URL::getIndexPage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dispatch event for customer login action
|
||||||
|
*
|
||||||
|
* @param Customer $customer
|
||||||
|
*/
|
||||||
protected function processLogin(Customer $customer)
|
protected function processLogin(Customer $customer)
|
||||||
{
|
{
|
||||||
$this->dispatch(TheliaEvents::CUSTOMER_LOGIN, new CustomerLoginEvent($customer));
|
$this->dispatch(TheliaEvents::CUSTOMER_LOGIN, new CustomerLoginEvent($customer));
|
||||||
|
|||||||
Reference in New Issue
Block a user