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

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
- 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\RemoveCommand::configure ( )
protected

Configure the command

Prepare the command for inclussion into the CLI Application Slaxer.

Returns
void
SlaxWeb\Bootstrap\Commands\Component\RemoveCommand::configure ( )
protected

Configure the command

Prepare the command for inclussion into the CLI Application Slaxer.

Returns
void
SlaxWeb\Bootstrap\Commands\Component\RemoveCommand::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/', if the package exists, it checks that the 'composer' command is found and then proceeds by removing the package with 'composer' if the component is installed.

Parameters
\Symfony\Component\Console\Input\InputInterface$inputCommand Input Object
\Symfony\Component\Console\Output\OutputInterface$outputCommand Output Object
Returns
void
SlaxWeb\Bootstrap\Commands\Component\RemoveCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Execute the command

Ensure the component is indeed installed, and run component configuration again. This will copy all the configuraiton over the existing one, so the executor is warned about this, and must confirm this action.

Parameters
\Symfony\Component\Console\Input\InputInterface$inputCommand Input Object
\Symfony\Component\Console\Output\OutputInterface$outputCommand Output Object
Returns
void

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