You are here

public function CreateEdgeRoleCommand::interact in Apigee Edge 8

File

src/Command/CreateEdgeRoleCommand.php, line 84

Class

CreateEdgeRoleCommand
Developer synchronization command class for Drupal Console.

Namespace

Drupal\apigee_edge\Command

Code

public function interact(InputInterface $input, OutputInterface $output) {
  $this
    ->setupIo($input, $output);
  $password = $input
    ->getOption('password');
  if (!$password) {
    $password = $this
      ->getIo()
      ->askHidden($this
      ->trans('commands.apigee_edge.role.create.questions.password'));
    $input
      ->setOption('password', $password);
  }
}