PHP Class Acacha\Llum\Console\InitCommand

Inheritance: extends LlumCommand
显示文件 Open project: acacha/llum

Protected Properties

Property Type Description
$api Acacha\Llum\Github\GithubAPI Github api service class.
$commandDescription string Command description.
$commandName string Command name.
$compiler Acacha\Llum\Compiler\RCFileCompiler Compiler for llumrc file.
$filesytem Acacha\Llum\Filesystem\Filesystem Filesystem.
$github_token string Github token.
$github_username Github username
$method string Method to execute.

Public Methods

Method Description
__construct ( Filesystem $filesytem, RCFileCompiler $compiler, GithubAPI $api ) InitCommand constructor.
askGithubToken ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
askGithubUsername ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
init ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) init command.

Protected Methods

Method Description
askGithubPassword ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed
defaultUsername ( ) : string
executeWizard ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Executes wizard.
getStubPath ( ) : string Get path to stub.

Method Details

__construct() public method

InitCommand constructor.
public __construct ( Filesystem $filesytem, RCFileCompiler $compiler, GithubAPI $api )
$filesytem Acacha\Llum\Filesystem\Filesystem
$compiler Acacha\Llum\Compiler\RCFileCompiler
$api Acacha\Llum\Github\GithubAPI

askGithubPassword() protected method

protected askGithubPassword ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return mixed

askGithubToken() public method

public askGithubToken ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

askGithubUsername() public method

public askGithubUsername ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

defaultUsername() protected method

protected defaultUsername ( ) : string
return string

executeWizard() protected method

Executes wizard.
protected executeWizard ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getStubPath() protected method

Get path to stub.
protected getStubPath ( ) : string
return string

init() public method

init command.
public init ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

Property Details

$api protected_oe property

Github api service class.
protected GithubAPI,Acacha\Llum\Github $api
return Acacha\Llum\Github\GithubAPI

$commandDescription protected_oe property

Command description.
protected string $commandDescription
return string

$commandName protected_oe property

Command name.
protected string $commandName
return string

$compiler protected_oe property

Compiler for llumrc file.
protected RCFileCompiler,Acacha\Llum\Compiler $compiler
return Acacha\Llum\Compiler\RCFileCompiler

$filesytem protected_oe property

Filesystem.
protected Filesystem,Acacha\Llum\Filesystem $filesytem
return Acacha\Llum\Filesystem\Filesystem

$github_token protected_oe property

Github token.
protected string $github_token
return string

$github_username protected_oe property

Github username
protected $github_username

$method protected_oe property

Method to execute.
protected string $method
return string