PHP Class Acacha\Llum\Console\LlumCommand

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

Protected Properties

Property 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.

Public Methods

Method Description
__construct ( ) LlumCommand constructor.

Protected Methods

Method 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

Method 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 method

LlumCommand constructor.
public __construct ( )

configure() protected method

Configure the command options.
protected configure ( )

configureCommand() protected method

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

execute() protected method

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
return integer | null | void

getDevOption() protected method

* gets dev option
protected getDevOption ( )

initialize() protected method

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 method

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

package() protected method

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

showPackageNotFoundError() protected method

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

Property Details

$argument protected_oe property

Command argument.
protected string $argument
return string

$argumentDescription protected_oe property

Command argument description.
protected string $argumentDescription
return string

$argumentType protected_oe property

Argument type.
protected int $argumentType
return integer

$commandDescription protected_oe property

Command description.
protected string $commandDescription
return string

$commandName protected_oe property

Command name.
protected string $commandName
return string

$config protected_oe property

Config repository.
protected Repository,Illuminate\Config $config
return Illuminate\Config\Repository

$configPath protected_oe property

Path to config folder.
protected string $configPath
return string

$installDev protected_oe property

Install development version.
protected bool $installDev
return boolean

$laravel_config_file protected_oe property

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

$laravel_services_file protected_oe property

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

$method protected_oe property

Method to execute.
protected string $method
return string

$output protected_oe property

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