We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b86b4bb commit 6310342Copy full SHA for 6310342
src/Auth/AppCredentials.php
@@ -21,13 +21,14 @@ class AppCredentials
21
public static function fromEnv(?string $prefix = null): self
22
{
23
$env = Env::vars($prefix);
24
- return self::new()
25
- ->withAppToken($env->getAppToken())
26
- ->withClientId($env->getClientId())
27
- ->withClientSecret($env->getClientSecret())
28
- ->withDefaultBotToken($env->getBotToken())
29
- ->withSigningKey($env->getSigningKey())
30
- ->withStateSecret($env->getStateSecret());
+ return new self(
+ $env->getSigningKey(),
+ $env->getBotToken(),
+ $env->getClientId(),
+ $env->getClientSecret(),
+ $env->getStateSecret(),
+ $env->getAppToken()
31
+ );
32
}
33
34
public static function new(): self
0 commit comments