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