Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #52 from kevinquinnyo/cake3-fix-event
Browse files Browse the repository at this point in the history
Cake3 fix event
  • Loading branch information
ADmad committed May 30, 2015
2 parents b38c16d + 7b04110 commit 84c9652
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Auth/CookieAuthenticate.php
Expand Up @@ -4,6 +4,7 @@
use Cake\Auth\BaseAuthenticate;
use Cake\Controller\ComponentRegistry;
use Cake\Controller\Component\CookieComponent;
use Cake\Event\Event;
use Cake\Network\Request;
use Cake\Network\Response;
use Cake\Routing\Router;
Expand Down Expand Up @@ -120,10 +121,11 @@ public function authenticate(Request $request, Response $response)
/**
* Called from AuthComponent::logout()
*
* @param \Cake\Event\Event $event The dispatched Auth.logout event.
* @param array $user User record.
* @return void
*/
public function logout(array $user)
public function logout(Event $event, array $user)
{
$this->_registry->Cookie->delete($this->_config['cookie']['name']);
}
Expand Down

0 comments on commit 84c9652

Please sign in to comment.