src/Sulu/Bundle/Sales/OrderBundle/Controller/TemplateController.php
public function getSystemUserArray()
    {
        $repo = $this->get('sulu_security.user_repository');
        $users = $repo->getUserInSystem();
        $contacts = [];

        foreach ($users as $user) {
            $contact = $user->getContact();
            $contacts[] = array(
                'id' => $contact->getId(),
                'fullName' => $contact->getFullName()
            );
        }
        return $contacts;
    }
public function getSystemUserArray()
    {
        $repo = $this->get('sulu_security.user_repository');
        $users = $repo->getUserInSystem();
        $contacts = [];

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