@@ 131-136 (lines=6) @@ | ||
128 | ||
129 | // Ask for the username if it's not defined |
|
130 | $username = $input->getArgument('username'); |
|
131 | if (null !== $username) { |
|
132 | $this->io->text(' > <info>Username</info>: '.$username); |
|
133 | } else { |
|
134 | $username = $this->io->ask('Username', null, [$this->validator, 'validateUsername']); |
|
135 | $input->setArgument('username', $username); |
|
136 | } |
|
137 | ||
138 | // Ask for the password if it's not defined |
|
139 | $password = $input->getArgument('password'); |
|
@@ 149-154 (lines=6) @@ | ||
146 | ||
147 | // Ask for the email if it's not defined |
|
148 | $email = $input->getArgument('email'); |
|
149 | if (null !== $email) { |
|
150 | $this->io->text(' > <info>Email</info>: '.$email); |
|
151 | } else { |
|
152 | $email = $this->io->ask('Email', null, [$this->validator, 'validateEmail']); |
|
153 | $input->setArgument('email', $email); |
|
154 | } |
|
155 | ||
156 | // Ask for the full name if it's not defined |
|
157 | $fullName = $input->getArgument('full-name'); |
|
@@ 158-163 (lines=6) @@ | ||
155 | ||
156 | // Ask for the full name if it's not defined |
|
157 | $fullName = $input->getArgument('full-name'); |
|
158 | if (null !== $fullName) { |
|
159 | $this->io->text(' > <info>Full Name</info>: '.$fullName); |
|
160 | } else { |
|
161 | $fullName = $this->io->ask('Full Name', null, [$this->validator, 'validateFullName']); |
|
162 | $input->setArgument('full-name', $fullName); |
|
163 | } |
|
164 | } |
|
165 | ||
166 | /** |