protected function generateEtag(\DateTime $timeStamp)
    {
        $user = $this->securityService->findGitUser();
        $userString = '';
        if (null !== $user) {
            $userString = $user->getGitUserName();
        }

        return md5($timeStamp->getTimestamp() . $userString);
    }
protected function generateEtag(\DateTime $timeStamp)
    {
        $user = $this->securityService->findGitUser();
        $userString = '';
        if (null !== $user) {
            $userString = $user->getGitUserName();
        }

        return md5($timeStamp->getTimestamp() . $userString);
    }
protected function generateEtag ( \ DateTime $ timeStamp ) { $ user = $ this -> securityService -> findGitUser ( ) ; $ userString = '' ; if ( null !== $ user ) { $ userString = $ user -> getGitUserName ( ) ; } return md5 ( $ timeStamp -> getTimestamp ( ) . $ userString ) ; }
Generate an etag based on the timestamp and the current user.

@param \DateTime $timeStamp

@return string The generated etag.
Generate an etag based on the timestamp and the current user .