Completed
Push — master ( 1223fc...6af157 )
by Damien
05:06
created

LoginController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 19
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 11 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 */
6
7
namespace flipbox\saml\sp\controllers\cp\view;
8
9
use flipbox\saml\sp\controllers\cp\view\GeneralController;
10
use flipbox\saml\sp\Saml;
11
12
class LoginController extends GeneralController
13
{
14
    const TEMPLATE_INDEX = DIRECTORY_SEPARATOR . '_cp';
15
16
    public $allowAnonymous = [
17
        'index',
18
    ];
19
    public function actionIndex()
20
    {
21
        $variables = $this->getBaseVariables();
22
23
        $variables['providers'] = Saml::getInstance()->getProvider()->findByIdp();
24
        return $this->renderTemplate(
25
            'saml-sp/_cp/login',
26
            //            $this->getTemplateIndex() . static::TEMPLATE_INDEX . DIRECTORY_SEPARATOR . '',
27
            $variables
28
        );
29
    }
30
}
31