name = $name; } /** * Binds a user object to this user authentication object * * @param UserInterface $user The user object to bind * * @return mixed */ public function setUser(UserInterface &$user) { $this->user = $user; } /** * Is this user authenticated by this object? The $params array contains at least one key, 'password'. * * @param array $params The parameters used in the authentication process * * @return boolean True if the user is authenticated (or this plugin doesn't apply), false otherwise */ public function onAuthentication($params = array()) { // I think PHP 5.3.5 requires this? return true; } }