protected function voteForReadAction($subject, TokenInterface $token)
    {
        $contentType = $subject;
        if (is_object($subject)) {
            $contentType = $subject->getContentType();
        }

        return $this->isSubjectInPerimeter($contentType, $token->getUser(), ContentTypeInterface::ENTITY_TYPE);
    }
protected function voteForReadAction($subject, TokenInterface $token)
    {
        $contentType = $subject;
        if (is_object($subject)) {
            $contentType = $subject->getContentType();
        }

        return $this->isSubjectInPerimeter($contentType, $token->getUser(), ContentTypeInterface::ENTITY_TYPE);
    }
protected function voteForReadAction ( $ subject , TokenInterface $ token ) { $ contentType = $ subject ; if ( is_object ( $ subject ) ) { $ contentType = $ subject -> getContentType ( ) ; } return $ this -> isSubjectInPerimeter ( $ contentType , $ token -> getUser ( ) , ContentTypeInterface :: ENTITY_TYPE ) ; }
Vote for Read action
A user can read a content if it is in his perimeter

@param ContentInterface|string $subject
@param TokenInterface          $token

@return bool
Vote for Read action A user can read a content if it is in his perimeter