src/Authenticator/CookieAuthenticator.php
protected function _checkToken($identity, $tokenHash)
    {
        $plain = $this->_createPlainToken($identity);

        return $this->getPasswordHasher()->check($plain, $tokenHash);
    }
protected function _checkToken($identity, $tokenHash)
    {
        $plain = $this->_createPlainToken($identity);

        return $this->getPasswordHasher()->check($plain, $tokenHash);
    }
protected function _checkToken ( $ identity , $ tokenHash ) { $ plain = $ this -> _createPlainToken ( $ identity ) ; return $ this -> getPasswordHasher ( ) -> check ( $ plain , $ tokenHash ) ; }
Checks whether a token hash matches the identity data.

@param array|\ArrayAccess $identity Identity data.
@param string $tokenHash Hashed part of a cookie token.
@return bool
Checks whether a token hash matches the identity data .