PHP Class Acacha\Llum\Console\InitCommand

Inheritance: extends LlumCommand
Afficher le fichier Open project: acacha/llum

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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 méthode

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
Résultat mixed

askGithubToken() public méthode

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 méthode

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 méthode

protected defaultUsername ( ) : string
Résultat string

executeWizard() protected méthode

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 méthode

Get path to stub.
protected getStubPath ( ) : string
Résultat string

init() public méthode

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
Résultat Acacha\Llum\Github\GithubAPI

$commandDescription protected_oe property

Command description.
protected string $commandDescription
Résultat string

$commandName protected_oe property

Command name.
protected string $commandName
Résultat string

$compiler protected_oe property

Compiler for llumrc file.
protected RCFileCompiler,Acacha\Llum\Compiler $compiler
Résultat Acacha\Llum\Compiler\RCFileCompiler

$filesytem protected_oe property

Filesystem.
protected Filesystem,Acacha\Llum\Filesystem $filesytem
Résultat Acacha\Llum\Filesystem\Filesystem

$github_token protected_oe property

Github token.
protected string $github_token
Résultat string

$github_username protected_oe property

Github username
protected $github_username

$method protected_oe property

Method to execute.
protected string $method
Résultat string