You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Flarum.php
+21-8Lines changed: 21 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -37,20 +37,31 @@ class Flarum
37
37
/** @var bool Verify SSL cert. More details on https://docs.guzzlephp.org/en/stable/request-options.html#verify */
38
38
public$verify;
39
39
40
+
/** @var string */
41
+
public$cookies_prefix;
42
+
40
43
/** @var User|null */
41
44
private$user;
42
45
43
46
/**
44
47
* Flarum constructor
45
48
*
46
-
* @param array $config {
47
-
* @type string $url Flarum URL
48
-
* @type string $root_domain Main site or SSO system domain
49
-
* @type string $api_key Random key from the api_keys table of your Flarum forum
50
-
* @type string $password_token Random token to create passwords
51
-
* @type bool $remember Should the login be remembered (this equals to 5 years remember from last usage)? If false, token will be remembered only for 1 hour. Default: false
52
-
* @type bool|string $verify_ssl Verify SSL cert. More details on https://docs.guzzlephp.org/en/stable/request-options.html#verify. Default: true
53
-
* }
49
+
* @param array{
50
+
* url: string,
51
+
* root_domain: string,
52
+
* api_key: string,
53
+
* password_token: string,
54
+
* remember: bool,
55
+
* verify_ssl: bool|string,
56
+
* cookies_prefix: string
57
+
* } $config Options array. It accepts the following elements:
58
+
* - url: string - Flarum URL
59
+
* - root_domain: string - Main site or SSO system domain
60
+
* - pai_key: string - Random key from the api_keys table of your Flarum forum
61
+
* - password_token: string - Random token to create passwords
62
+
* - remember: bool - Should the login be remembered (this equals to 5 years remember from last usage)? If false, token will be remembered only for 1 hour. Default: false
63
+
* - verify_ssl: bool|string - Verify SSL cert. More details on https://docs.guzzlephp.org/en/stable/request-options.html#verify. Default: true
64
+
* - cookies_prefix: string - String to prefix the cookie name when creating remember/auth tokens. Default: "flarum"
54
65
*/
55
66
publicfunction__construct(array$config)
56
67
{
@@ -77,6 +88,8 @@ public function __construct(array $config)
0 commit comments