PHP Class Nwidart\Modules\Commands\InstallCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: nwidart/laravel-modules

Protected Properties

Property Type Description
$description string The console command description.
$name string The console command name.

Public Methods

Method Description
__construct ( ) Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.
install ( string $name, string $version = 'dev-master', string $type = 'composer', boolean $tree = false ) Install the specified module.
installFromFile ( ) Install modules from modules.json file.

Method Details

__construct() public method

Create a new command instance.
public __construct ( )

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

install() protected method

Install the specified module.
protected install ( string $name, string $version = 'dev-master', string $type = 'composer', boolean $tree = false )
$name string
$version string
$type string
$tree boolean

installFromFile() protected method

Install modules from modules.json file.
protected installFromFile ( )

Property Details

$description protected property

The console command description.
protected string $description
return string

$name protected property

The console command name.
protected string $name
return string