Acacha\Llum\Parser\LlumRCParser::getCredentials PHP Метод

getCredentials() публичный метод

Get credentials from config file.
public getCredentials ( ) : array
Результат array
    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']];
        }
    }

Usage Example

Пример #1
0
 /**
  * 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;
 }
All Usage Examples Of Acacha\Llum\Parser\LlumRCParser::getCredentials