PHP Class Acacha\Llum\Console\LlumCommand

Inheritance: extends Symfony\Component\Console\Command\Command, use trait Acacha\Llum\Traits\LaravelConfigFile
Afficher le fichier Open project: acacha/llum Class Usage Examples

Protected Properties

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

Méthodes publiques

Méthode Description
__construct ( ) LlumCommand constructor.

Méthodes protégées

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

Private Methods

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

Method Details

__construct() public méthode

LlumCommand constructor.
public __construct ( )

configure() protected méthode

Configure the command options.
protected configure ( )

configureCommand() protected méthode

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

execute() protected méthode

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
Résultat integer | null | void

getDevOption() protected méthode

* gets dev option
protected getDevOption ( )

initialize() protected méthode

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() protected méthode

Get config repository.
protected obtainConfig ( ) : Illuminate\Config\Repository
Résultat Illuminate\Config\Repository

package() protected méthode

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

showPackageNotFoundError() protected méthode

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

Property Details

$argument protected_oe property

Command argument.
protected string $argument
Résultat string

$argumentDescription protected_oe property

Command argument description.
protected string $argumentDescription
Résultat string

$argumentType protected_oe property

Argument type.
protected int $argumentType
Résultat integer

$commandDescription protected_oe property

Command description.
protected string $commandDescription
Résultat string

$commandName protected_oe property

Command name.
protected string $commandName
Résultat string

$config protected_oe property

Config repository.
protected Repository,Illuminate\Config $config
Résultat Illuminate\Config\Repository

$configPath protected_oe property

Path to config folder.
protected string $configPath
Résultat string

$installDev protected_oe property

Install development version.
protected bool $installDev
Résultat boolean

$laravel_config_file protected_oe property

Laravel config file (config/app.php).
protected string $laravel_config_file
Résultat string

$laravel_services_file protected_oe property

Laravel services file (config/services.php).
protected string $laravel_services_file
Résultat string

$method protected_oe property

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

$output protected_oe property

The output interface.
protected OutputInterface,Symfony\Component\Console\Output $output
Résultat Symfony\Component\Console\Output\OutputInterface