MCPcopy Create free account
hub / github.com/GDATASoftwareAG/vaas / __construct

Method __construct

php/examples/wordpress/src/gd-scan/Vaas/Client.php:12–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 private Vaas $vaas;
11
12 public function __construct()
13 {
14 $authenticator = new ClientCredentialsGrantAuthenticator(
15 getenv("CLIENT_ID"),
16 getenv("CLIENT_SECRET"),
17 getenv("TOKEN_URL") ?: "https://account.gdata.de/realms/vaas-production/protocol/openid-connect/token"
18 );
19 $this->vaas = (new Vaas())
20 ->withAuthenticator($authenticator)
21 ->build();
22 }
23
24 public function scanSingleFile(string $fileName): void
25 {

Callers

nothing calls this directly

Calls 2

buildMethod · 0.45
withAuthenticatorMethod · 0.45

Tested by

no test coverage detected