Пример #1
0
 /**
  * @param \Symfony\Component\Console\Output\OutputInterface $output
  * @param \Symfony\Component\Console\Output\OutputInterface $output
  *
  * @return \DrupalPatchUtils\DoBrowser
  * @throws \Exception
  */
 protected function login(InputInterface $input, OutputInterface $output)
 {
     $browser = new DoBrowser();
     if (!$browser->loggedIn()) {
         $browser->login($this->getConfig()->getDrupalUser(), $this->ask($input, $output, new Question("Enter your Drupal.org password: "******"Enter tfa code (if activated for account): "), TRUE));
     }
     return $browser;
 }