Doctrine/ORM/Filter/Listener/SharingFilterSubscriber.php
private function buildSecurityIdentities()
    {
        $tSids = $this->sidManager->getSecurityIdentities($this->tokenStorage->getToken());
        $sids = [];

        foreach ($tSids as $sid) {
            if (IdentityUtils::isValid($sid)) {
                $sids[] = $sid;
            }
        }

        return $sids;
    }
private function buildSecurityIdentities()
    {
        $tSids = $this->sidManager->getSecurityIdentities($this->tokenStorage->getToken());
        $sids = [];

        foreach ($tSids as $sid) {
            if (IdentityUtils::isValid($sid)) {
                $sids[] = $sid;
            }
        }

        return $sids;
    }
private function buildSecurityIdentities ( ) { $ tSids = $ this -> sidManager -> getSecurityIdentities ( $ this -> tokenStorage -> getToken ( ) ) ; $ sids = [ ] ; foreach ( $ tSids as $ sid ) { if ( IdentityUtils :: isValid ( $ sid ) ) { $ sids [ ] = $ sid ; } } return $ sids ; }
Build the security identities.

@return SecurityIdentityInterface[]
Build the security identities .