PHP Класс Shopware\PluginCreator\Command\CreatePluginCommand

Наследование: extends ShopwareCli\Command\BaseCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
prepareLicenseHeader ( $license )

Описание методов

configure() защищенный Метод

protected configure ( )

execute() защищенный Метод

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 getConfig ( ) : Config
Результат Config

getConfigurationObject() защищенный Метод

Populate a configuration object by the input interface
protected getConfigurationObject ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration
$input Symfony\Component\Console\Input\InputInterface
Результат Shopware\PluginCreator\Struct\Configuration

interact() публичный Метод

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() публичный Метод

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

upperToArray() публичный Метод

Split "SwagTestPlugin" into array("Swag", "Test", "Plugin")
public upperToArray ( $input ) : array
$input
Результат array

validateModel() публичный Метод

Check the entered model (check might be somewhat more sufisticated)
public validateModel ( $input ) : mixed
$input
Результат mixed

validateName() защищенный Метод

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() публичный Метод

Make sure the namespace is one of core, backend, frontend
public validateNamespace ( $input ) : mixed
$input
Результат mixed