forked from shoreless-ltd/tbg-oauth2-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Components.php
27 lines (20 loc) · 943 Bytes
/
Components.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
namespace thebuggenie\modules\oauth2_gitlab;
use thebuggenie\core\framework;
/**
* actions for the oauth2_gitlab module
*/
class Components extends framework\ActionComponent
{
public function componentSettings()
{
$settings = Oauth2_gitlab::getModule()->getSettings();
$this->domain = ! empty($settings['domain']) ? $settings['domain'] : '';
$this->client_id = ! empty($settings['client_id']) ? $settings['client_id'] : '';
$this->client_secret = ! empty($settings['client_secret']) ? $settings['client_secret'] : '';
//$this->btn_label = ! empty($settings['btn_label']) ? $settings['btn_label'] : '';
if (framework\Context::hasMessage('oauth2_gitlab_settings_saved')) {
$this->settings_saved = framework\Context::getMessageAndClear('oauth2_gitlab_settings_saved');
}
}
}