Skip to content

Commit b01044c

Browse files
authored
Update IdentityConfig.php
1 parent 372076e commit b01044c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Config/IdentityConfig.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ class IdentityConfig
77
{
88
public function __construct(
99
public ?int $id = null,
10-
public ?array $roles = null
10+
public ?array $roles = null,
11+
public ?string $username = null,
12+
public ?string $domain = null
1113
) {}
1214

1315

@@ -16,6 +18,8 @@ public static function createFromArray(?array $config = null)
1618
return new self(
1719
$config['id'] ?? null,
1820
isset($config['roles']) ? (array) $config['roles'] : null,
21+
$config['username'] ?? null,
22+
$config['domain'] ?? null,
1923
);
2024
}
2125
}

0 commit comments

Comments
 (0)