public function getCredentials() { $rc_file = $this->parse(); if (array_key_exists('username', $rc_file) && array_key_exists('username', $rc_file)) { return [$rc_file['username'], $rc_file['token']]; } }
/** * Get credentials. * * @param OutputInterface $input * @return array */ public function getCredentials(OutputInterface $output) { $credentials = $this->parser->getCredentials(); if (is_null($credentials)) { $this->showErrorRunLlumInitFirst($output, "Credentials"); } return $credentials; }