Doctrine/ORM/Provider/SharingProvider.php
private function getSecurityIdentities($sids = null)
    {
        if (null === $sids) {
            $sids = $this->sidManager->getSecurityIdentities($this->tokenStorage->getToken());
        }

        return null !== $sids
            ? $sids
            : [];
    }
private function getSecurityIdentities($sids = null)
    {
        if (null === $sids) {
            $sids = $this->sidManager->getSecurityIdentities($this->tokenStorage->getToken());
        }

        return null !== $sids
            ? $sids
            : [];
    }
private function getSecurityIdentities ( $ sids = null ) { if ( null === $ sids ) { $ sids = $ this -> sidManager -> getSecurityIdentities ( $ this -> tokenStorage -> getToken ( ) ) ; } return null !== $ sids ? $ sids : [ ] ; }
Get the security identities.

@param null|SecurityIdentityInterface[] $sids The security identities to filter the sharing entries

@return SecurityIdentityInterface[]
Get the security identities .