diff --git a/src/Auth/CasAuthenticate.php b/src/Auth/CasAuthenticate.php index c941a9d..84eb0cc 100644 --- a/src/Auth/CasAuthenticate.php +++ b/src/Auth/CasAuthenticate.php @@ -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 = '/';