Skip to content

Commit 00a1a57

Browse files
committed
HTTP helper is not static anymore
1 parent bc5d3b4 commit 00a1a57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Auth/Source/External.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ public function authenticate(array &$state): void
215215
* Note the 'ReturnTo' parameter. This must most likely be replaced with
216216
* the real name of the parameter for the login page.
217217
*/
218-
HTTP::redirectTrustedURL($authPage, [
218+
$HTTP = new HTTP();
219+
$HTTP->redirectTrustedURL($authPage, [
219220
'ReturnTo' => $returnTo,
220221
]);
221222

@@ -327,6 +328,7 @@ public function logout(array &$state): void
327328
$parameters['ReturnTo'] = $state['ReturnTo'];
328329
}
329330

330-
HTTP::redirectTrustedURL($logout_url, $parameters);
331+
$HTTP = new HTTP();
332+
$HTTP->redirectTrustedURL($logout_url, $parameters);
331333
}
332334
}

0 commit comments

Comments
 (0)