PHP Класс Acacha\Llum\Console\InitCommand

Наследование: extends LlumCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

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

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 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
Результат mixed

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

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 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 defaultUsername ( ) : string
Результат string

executeWizard() защищенный метод

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() защищенный метод

Get path to stub.
protected getStubPath ( ) : string
Результат string

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

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

Описание свойств

$api защищенное свойство

Github api service class.
protected GithubAPI,Acacha\Llum\Github $api
Результат Acacha\Llum\Github\GithubAPI

$commandDescription защищенное свойство

Command description.
protected string $commandDescription
Результат string

$commandName защищенное свойство

Command name.
protected string $commandName
Результат string

$compiler защищенное свойство

Compiler for llumrc file.
protected RCFileCompiler,Acacha\Llum\Compiler $compiler
Результат Acacha\Llum\Compiler\RCFileCompiler

$filesytem защищенное свойство

Filesystem.
protected Filesystem,Acacha\Llum\Filesystem $filesytem
Результат Acacha\Llum\Filesystem\Filesystem

$github_token защищенное свойство

Github token.
protected string $github_token
Результат string

$github_username защищенное свойство

Github username
protected $github_username

$method защищенное свойство

Method to execute.
protected string $method
Результат string