SlaxWeb Framework
 All Classes Namespaces Functions Variables Pages
Protected Member Functions | List of all members
SlaxWeb\Bootstrap\Commands\Component\InstallCommand Class Reference
Inheritance diagram for SlaxWeb\Bootstrap\Commands\Component\InstallCommand:
Inheritance graph
[legend]
Collaboration diagram for SlaxWeb\Bootstrap\Commands\Component\InstallCommand:
Collaboration graph
[legend]

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
 install (array $component, bool $isMain=true)
 
 installSub (string $name)
 
- Protected Member Functions inherited from SlaxWeb\Bootstrap\Commands\Component\BaseCommand
 getComponent (array $component)
 
 checkComposer ()
 
 installComposer ()
 
 componentExists (string $component)
 
 isInstalled (string $component)
 
 parseMetaData (string $name)
 
 remove (string $name)
 
 configComponent (string $name)
 
 addProviders (array $config, array $providers)
 
 removeProviders (array $config, array $providers)
 

Additional Inherited Members

- Public Member Functions inherited from SlaxWeb\Bootstrap\Commands\Component\BaseCommand
 init (Application $app,\GuzzleHttp\Client $client)
 
- Public Attributes inherited from SlaxWeb\Bootstrap\Commands\Component\BaseCommand
 key
 
- Protected Attributes inherited from SlaxWeb\Bootstrap\Commands\Component\BaseCommand
 $input = null
 
 $output = null
 
 $composer = ""
 
 $app = null
 
 $client = null
 
 $error = ""
 
 $baseUrl = ""
 
 $logger = null
 
 $providersMap
 
 $metaData = []
 

Member Function Documentation

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$inputCommand Input Object
\Symfony\Component\Console\Output\OutputInterface$outputCommand 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$componentComponent data
bool$isMainIf 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$nameComponent name
Returns
bool

The documentation for this class was generated from the following file: