1 | <?php |
||
18 | abstract class AbstractGeneralController extends AbstractController implements EnsureSAMLPlugin |
||
19 | { |
||
20 | |||
21 | const TEMPLATE_INDEX = DIRECTORY_SEPARATOR . '_cp'; |
||
22 | |||
23 | /** |
||
24 | * @return \yii\web\Response |
||
25 | */ |
||
26 | public function actionIndex() |
||
27 | { |
||
28 | return $this->actionSetup(); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return \yii\web\Response |
||
33 | */ |
||
34 | public function actionSetup() |
||
35 | { |
||
36 | $variables = $this->getBaseVariables(); |
||
37 | $variables['crumbs'][] = [ |
||
38 | 'url' => UrlHelper::cpUrl($this->getPlugin()->getHandle()), |
||
39 | 'label' => 'SSO Provider' |
||
40 | ]; |
||
41 | |||
42 | return $this->renderTemplate( |
||
43 | $this->getTemplateIndex() . static::TEMPLATE_INDEX . DIRECTORY_SEPARATOR . 'setup', |
||
44 | $variables |
||
45 | ); |
||
46 | } |
||
47 | |||
48 | |||
49 | /** |
||
50 | * @return \yii\web\Response |
||
51 | */ |
||
52 | public function actionSettings() |
||
80 | |||
81 | /** |
||
82 | * Piece together the action url |
||
83 | * @return string |
||
84 | */ |
||
85 | private function getBaseActionPath() |
||
95 | } |
||
96 |