public function getSystemUserArray()
    {
        $repo = $this->get('sulu_security.user_repository');
        $users = $repo->findUserBySystem($this->container->getParameter('sulu_security.system'));
        $contacts = [];

        foreach ($users as $user) {
            $contact = $user->getContact();
            $contacts[] = [
                'id' => $contact->getId(),
                'fullName' => $contact->getFullName()
            ];
        }

        return $contacts;
    }
public function getSystemUserArray()
    {
        $repo = $this->get('sulu_security.user_repository');
        $users = $repo->findUserBySystem($this->container->getParameter('sulu_security.system'));
        $contacts = [];

        foreach ($users as $user) {
            $contact = $user->getContact();
            $contacts[] = [
                'id' => $contact->getId(),
                'fullName' => $contact->getFullName()
            ];
        }

        return $contacts;
    }
public function getSystemUserArray ( ) { $ repo = $ this -> get ( 'sulu_security.user_repository' ) ; $ users = $ repo -> findUserBySystem ( $ this -> container -> getParameter ( 'sulu_security.system' ) ) ; $ contacts = [ ] ; foreach ( $ users as $ user ) { $ contact = $ user -> getContact ( ) ; $ contacts [ ] = [ 'id' => $ contact -> getId ( ) , 'fullName' => $ contact -> getFullName ( ) ] ; } return $ contacts ; }
Returns all sulu system users.

@return array
Returns all sulu system users .