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

Наследование: extends Symfony\Component\Console\Command\Command, use trait Acacha\Llum\Traits\LaravelConfigFile
Показать файл Открыть проект Примеры использования класса

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

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