Identity/SecurityIdentityManager.php
private function injectSpecialRoles(array $sids)
    {
        $roles = $this->getRoleNames($sids);

        foreach ($this->roles as $role) {
            if (!\in_array($role, $roles, true)) {
                $sids[] = RoleSecurityIdentity::fromAccount($role);
            }
        }

        return $sids;
    }
private function injectSpecialRoles(array $sids)
    {
        $roles = $this->getRoleNames($sids);

        foreach ($this->roles as $role) {
            if (!\in_array($role, $roles, true)) {
                $sids[] = RoleSecurityIdentity::fromAccount($role);
            }
        }

        return $sids;
    }
private function injectSpecialRoles ( array $ sids ) { $ roles = $ this -> getRoleNames ( $ sids ) ; foreach ( $ this -> roles as $ role ) { if ( ! \ in_array ( $ role , $ roles , true ) ) { $ sids [ ] = RoleSecurityIdentity :: fromAccount ( $ role ) ; } } return $ sids ; }
Inject the special roles.

@param SecurityIdentityInterface[] $sids The security identities

@return SecurityIdentityInterface[]
Inject the special roles .