Skip to content

Commit

Permalink
the alias defines the new name in root namespace, reference it so
Browse files Browse the repository at this point in the history
  • Loading branch information
restena-sw committed Jul 3, 2023
1 parent f0bde1a commit 06d95e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/PushbackUserPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function main(Request $request): Response {
$authsourceString = $moduleConfig->getString('password_authsource');
$classname = get_class(Source::getById($authsourceString));
class_alias($classname, 'AuthSourceOverloader');
$overrideSource = new class(['AuthId' => $authsourceString], $authsources[$authsourceString]) extends AuthSourceOverloader {
$overrideSource = new class(['AuthId' => $authsourceString], $authsources[$authsourceString]) extends \AuthSourceOverloader {
public function loginOverload(string $username, string $password): array {
return $this->login($username, $password);
}
Expand Down

0 comments on commit 06d95e0

Please sign in to comment.