mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove duplicate class declaration
This commit is contained in:
parent
5ac47487f9
commit
20e2882bf6
1 changed files with 0 additions and 44 deletions
|
@ -68,50 +68,6 @@ class TestBaseAuthenticate extends BaseAuthenticate {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* TestFormAuthenticate class
|
||||
*
|
||||
* @package Cake.Test.Case.Controller.Component
|
||||
*/
|
||||
class TestBaseAuthenticate extends BaseAuthenticate {
|
||||
|
||||
/**
|
||||
* Implemented events
|
||||
*
|
||||
* @return array of events => callbacks.
|
||||
*/
|
||||
public function implementedEvents() {
|
||||
return array(
|
||||
'Auth.afterIdentify' => 'afterIdentify'
|
||||
);
|
||||
}
|
||||
|
||||
public $afterIdentifyCallable = null;
|
||||
|
||||
/**
|
||||
* Test function to be used in event dispatching
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function afterIdentify($event) {
|
||||
call_user_func($this->afterIdentifyCallable, $event);
|
||||
}
|
||||
|
||||
/**
|
||||
* Authenticate a user based on the request information.
|
||||
*
|
||||
* @param CakeRequest $request Request to get authentication information from.
|
||||
* @param CakeResponse $response A response object that can have headers added.
|
||||
* @return array|bool Either false on failure, or an array of user data on success.
|
||||
*/
|
||||
public function authenticate(CakeRequest $request, CakeResponse $response) {
|
||||
return array(
|
||||
'id' => 1,
|
||||
'username' => 'mark'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TestAuthComponent class
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue