PHP 클래스 Acacha\Llum\Console\LlumCommand

상속: extends Symfony\Component\Console\Command\Command, use trait Acacha\Llum\Traits\LaravelConfigFile
파일 보기 프로젝트 열기: acacha/llum 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$argument string Command argument.
$argumentDescription string Command argument description.
$argumentType integer Argument type.
$commandDescription string Command description.
$commandName string Command name.
$config Illuminate\Config\Repository Config repository.
$configPath string Path to config folder.
$installDev boolean Install development version.
$laravel_config_file string Laravel config file (config/app.php).
$laravel_services_file string Laravel services file (config/services.php).
$method string Method to execute.
$output Symfony\Component\Console\Output\OutputInterface The output interface.

공개 메소드들

메소드 설명
__construct ( ) LlumCommand constructor.

보호된 메소드들

메소드 설명
configure ( ) Configure the command options.
configureCommand ( ConsoleCommand $command ) Configure the command options.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void Execute the command.
getDevOption ( ) * gets dev option
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Initialize command.
obtainConfig ( ) : Illuminate\Config\Repository Get config repository.
package ( string $name ) : integer Installs laravel package form config/packages.php file.
showPackageNotFoundError ( $name ) Show package not found error.

비공개 메소드들

메소드 설명
executeScriptAfterPackageInstallation ( $after ) Execute post package installation script.
findComposer ( ) : string Get the composer command for the environment.
getPackageFromConfig ( $name ) : array get package from config.
getPackageNameByComposerName ( $composerPackageName ) : string Get package name by composer package name.
obtainPackage ( $name ) : array | integer Obtain package.
requireComposerPackage ( $package ) Require composer package.

메소드 상세

__construct() 공개 메소드

LlumCommand constructor.
public __construct ( )

configure() 보호된 메소드

Configure the command options.
protected configure ( )

configureCommand() 보호된 메소드

Configure the command options.
protected configureCommand ( ConsoleCommand $command )
$command ConsoleCommand

execute() 보호된 메소드

Execute the command.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 integer | null | void

getDevOption() 보호된 메소드

* gets dev option
protected getDevOption ( )

initialize() 보호된 메소드

Initialize command.
protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

obtainConfig() 보호된 메소드

Get config repository.
protected obtainConfig ( ) : Illuminate\Config\Repository
리턴 Illuminate\Config\Repository

package() 보호된 메소드

Installs laravel package form config/packages.php file.
protected package ( string $name ) : integer
$name string
리턴 integer -1 if error occurred

showPackageNotFoundError() 보호된 메소드

Show package not found error.
protected showPackageNotFoundError ( $name )
$name

프로퍼티 상세

$argument 보호되어 있는 프로퍼티

Command argument.
protected string $argument
리턴 string

$argumentDescription 보호되어 있는 프로퍼티

Command argument description.
protected string $argumentDescription
리턴 string

$argumentType 보호되어 있는 프로퍼티

Argument type.
protected int $argumentType
리턴 integer

$commandDescription 보호되어 있는 프로퍼티

Command description.
protected string $commandDescription
리턴 string

$commandName 보호되어 있는 프로퍼티

Command name.
protected string $commandName
리턴 string

$config 보호되어 있는 프로퍼티

Config repository.
protected Repository,Illuminate\Config $config
리턴 Illuminate\Config\Repository

$configPath 보호되어 있는 프로퍼티

Path to config folder.
protected string $configPath
리턴 string

$installDev 보호되어 있는 프로퍼티

Install development version.
protected bool $installDev
리턴 boolean

$laravel_config_file 보호되어 있는 프로퍼티

Laravel config file (config/app.php).
protected string $laravel_config_file
리턴 string

$laravel_services_file 보호되어 있는 프로퍼티

Laravel services file (config/services.php).
protected string $laravel_services_file
리턴 string

$method 보호되어 있는 프로퍼티

Method to execute.
protected string $method
리턴 string

$output 보호되어 있는 프로퍼티

The output interface.
protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface