Untrack configuration includes
This commit is contained in:
parent
7bd8f9c7c3
commit
8c869f6049
3 changed files with 4 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
|
/HostOption.php
|
||||||
|
/TwitterKey.php
|
||||||
/db.json
|
/db.json
|
||||||
/timestamp.dat
|
/timestamp.dat
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
class HostOption {
|
class HostOption {
|
||||||
private static $values = array(
|
private static $values = array(
|
||||||
'api.github.com' => array('Authorization: token TOKEN')
|
'api.github.com' => array('Authorization: token xxx'),
|
||||||
|
'gitlab.com' => array('PRIVATE-TOKEN: xxx')
|
||||||
);
|
);
|
||||||
public static function get(string $key) {
|
public static function get(string $key) {
|
||||||
return array_key_exists($key, self::$values) ? self::$values[$key] : false;
|
return array_key_exists($key, self::$values) ? self::$values[$key] : false;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue