Acacha\Llum\Parser\LlumRCParser::getGitHubUsername PHP Method

getGitHubUsername() public method

Get github username from config file.
public getGitHubUsername ( ) : array
return array
    public function getGitHubUsername()
    {
        $rc_file = $this->parse();
        if (array_key_exists('username', $rc_file)) {
            return $rc_file['username'];
        }
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Get github username from llum config.
  *
  * @param OutputInterface $output
  * @return array
  */
 protected function getGithubUserNameFromConfig(OutputInterface $output)
 {
     $username = $this->parser->getGitHubUsername();
     if (is_null($username)) {
         $this->showErrorRunLlumInitFirst($output, 'username');
     }
     return $username;
 }