Skip to content

Commit

Permalink
Merge pull request #5 from mathieugrimault/patch-1
Browse files Browse the repository at this point in the history
Fix deprecation for CakePHP 3.7.8
  • Loading branch information
snelg authored Jun 26, 2019
2 parents eb60ad3 + 897d8a1 commit 8305a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth/CasAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ public function logout(Event $event)
// phpCAS will stop script execution after it sends the redirect
// header, which is a problem because CakePHP still thinks the
// user is logged in. See Step 2.
$auth = $event->subject();
$auth = $event->getSubject();
if ($auth instanceof AuthComponent) {
$redirectUrl = $auth->config('logoutRedirect');
$redirectUrl = $auth->getConfig('logoutRedirect');
}
if (empty($redirectUrl)) {
$redirectUrl = '/';
Expand Down

0 comments on commit 8305a14

Please sign in to comment.