Completed
Push — master ( 588ba9...79cfe6 )
by Adam
11:22
created

ClientController::registrationAction()   A

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 3
Code Lines 2

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * WellCommerce Open-Source E-Commerce Platform
4
 *
5
 * This file is part of the WellCommerce package.
6
 *
7
 * (c) Adam Piotrowski <[email protected]>
8
 *
9
 * For the full copyright and license information,
10
 * please view the LICENSE file that was distributed with this source code.
11
 */
12
13
namespace WellCommerce\Bundle\AppBundle\Controller\Front;
14
15
use Symfony\Component\HttpFoundation\Response;
16
use WellCommerce\Bundle\AppBundle\Entity\Client;
17
use WellCommerce\Bundle\CoreBundle\Controller\Front\AbstractFrontController;
18
19
/**
20
 * Class ClientController
21
 *
22
 * @author  Adam Piotrowski <[email protected]>
23
 */
24
class ClientController extends AbstractFrontController
25
{
26
    public function loginAction(): Response
27
    {
28
        if ($this->getSecurityHelper()->getCurrentClient() instanceof Client) {
29
            return $this->redirectToRoute('front.client_order.index');
30
        }
31
        
32
        return $this->displayTemplate('login');
33
    }
34
35
    public function registrationAction(){
36
        return $this->displayTemplate('registration');
37
    }
38
39
    public function loginCheckAction()
40
    {
41
    }
42
}
43