SlaxWeb\Bootstrap\Commands\Component\InstallCommand::configure |
( |
| ) |
|
|
protected |
Configure the command
Prepare the command for inclussion into the CLI Application Slaxer.
- Returns
- void
SlaxWeb\Bootstrap\Commands\Component\InstallCommand::execute |
( |
InputInterface |
$input, |
|
|
OutputInterface |
$output |
|
) |
| |
|
protected |
Execute the command
Check that the component exists on packagist. If no slash is found in the name, component name is automatically prepended by 'slaxweb/', so that SlaxWeb components are installed by default. If the package exists, it checks that the 'composer' command is found and then proceeds by installing the package with 'composer'.
- Parameters
-
\Symfony\Component\Console\Input\InputInterface | $input | Command Input Object |
\Symfony\Component\Console\Output\OutputInterface | $output | Command Output Object |
- Returns
- void
SlaxWeb\Bootstrap\Commands\Component\InstallCommand::install |
( |
array |
$component, |
|
|
bool |
$isMain = true |
|
) |
| |
|
protected |
Install component
Installs the component and parses the meta data. If the meta data file does not exist, or the component is not of type 'main' the component is removed.
- Parameters
-
array | $component | Component data |
bool | $isMain | If component is main |
- Returns
- bool
SlaxWeb\Bootstrap\Commands\Component\InstallCommand::installSub |
( |
string |
$name | ) |
|
|
protected |
Install SubComponent
Installs the sub-component and parses its config, just as when installing a main component.
- Parameters
-
string | $name | Component name |
- Returns
- bool
The documentation for this class was generated from the following file:
- /opt/slax0rDev/slaxweb/bootstrap/src/Commands/Component/InstallCommand.php