PHP Class Shopware\PluginCreator\Command\CreatePluginCommand

Inheritance: extends ShopwareCli\Command\BaseCommand
Datei anzeigen Open project: shopwarelabs/sw-cli-tools

Public Methods

Method Description
interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
normalizeBooleanFields ( Symfony\Component\Console\Input\InputInterface $input ) Make sure, that our booleans are actual booleans
upperToArray ( $input ) : array Split "SwagTestPlugin" into array("Swag", "Test", "Plugin")
validateModel ( $input ) : mixed Check the entered model (check might be somewhat more sufisticated)
validateNamespace ( $input ) : mixed Make sure the namespace is one of core, backend, frontend

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getConfig ( ) : Config
getConfigurationObject ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration Populate a configuration object by the input interface
validateName ( $name ) Check the plugin name - it needs to constist of two parts at least - the first one is the dev prefix

Private Methods

Method Description
prepareLicenseHeader ( $license )

Method Details

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getConfig() protected method

protected getConfig ( ) : Config
return Config

getConfigurationObject() protected method

Populate a configuration object by the input interface
protected getConfigurationObject ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration
$input Symfony\Component\Console\Input\InputInterface
return Shopware\PluginCreator\Struct\Configuration

interact() public method

public interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

normalizeBooleanFields() public method

Make sure, that our booleans are actual booleans
public normalizeBooleanFields ( Symfony\Component\Console\Input\InputInterface $input )
$input Symfony\Component\Console\Input\InputInterface

upperToArray() public method

Split "SwagTestPlugin" into array("Swag", "Test", "Plugin")
public upperToArray ( $input ) : array
$input
return array

validateModel() public method

Check the entered model (check might be somewhat more sufisticated)
public validateModel ( $input ) : mixed
$input
return mixed

validateName() protected method

Check the plugin name - it needs to constist of two parts at least - the first one is the dev prefix
protected validateName ( $name )
$name

validateNamespace() public method

Make sure the namespace is one of core, backend, frontend
public validateNamespace ( $input ) : mixed
$input
return mixed