src/Command/UserEditCommand.php
protected function selector(&$choices = null)
    {
        $choices = $choices ? $choices : $this->choices;
        $choices = $this->userEditor->getChoicesAsEmailUsername($choices);
        $question = new ChoiceQuestion(static::PLEASE_SELECT_A_USER, $choices);
        $selectedUser = $this->ask($question);
        $user = $this->getChoiceBySelection($selectedUser);
        if ($user) {
            $this->editor($user);
        }
    }
protected function selector(&$choices = null)
    {
        $choices = $choices ? $choices : $this->choices;
        $choices = $this->userEditor->getChoicesAsEmailUsername($choices);
        $question = new ChoiceQuestion(static::PLEASE_SELECT_A_USER, $choices);
        $selectedUser = $this->ask($question);
        $user = $this->getChoiceBySelection($selectedUser);
        if ($user) {
            $this->editor($user);
        }
    }
protected function selector ( & $ choices = null ) { $ choices = $ choices ? $ choices : $ this -> choices ; $ choices = $ this -> userEditor -> getChoicesAsEmailUsername ( $ choices ) ; $ question = new ChoiceQuestion ( static :: PLEASE_SELECT_A_USER , $ choices ) ; $ selectedUser = $ this -> ask ( $ question ) ; $ user = $ this -> getChoiceBySelection ( $ selectedUser ) ; if ( $ user ) { $ this -> editor ( $ user ) ; } }
Multiple choices user select

@param User[] $choices
Multiple choices user select