public function authenticate(?Zend_Auth_Adapter_Interface
$adapter = null
) { if ($adapter == null
) { $adapter =
$this->_adapter;
} $result = parent::
authenticate($adapter);
if ($result->
isValid() &&
method_exists($adapter, 'getResultRowObject'
)) { $user =
$adapter->
getResultRowObject();
if (\
is_object($user)) { $this->
getStorage()->
write($user);
} } else { $this->
getStorage()->
clear();
} return $result;
} /**
* Refreshes the auth object
*
* @return Zend_Auth_Result
*/