Shopware\PluginCreator\Command\CreatePluginCommand::configure PHP Метод

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

protected configure ( )
    protected function configure()
    {
        $this->setName('plugin:create')->setDescription('Creates a new plugin.')->addArgument('name', InputArgument::REQUIRED, 'Prefixed name of the plugin to create. E.g: SwagAdvancedBasket')->addOption(self::LEGACY_OPTION, null, InputOption::VALUE_NONE, 'Create a legacy Plugin for Shopware versions lower than 5.2')->addOption('namespace', null, InputOption::VALUE_OPTIONAL, 'Namespace to create the plugin in. One of Frontend, Core or Backend', 'Frontend')->addOption('haveBackend', 'b', InputOption::VALUE_NONE, 'Do you want a backend application to be created? This will create the ExtJS structure and connect it to an existing or new model')->addOption('haveFilter', null, InputOption::VALUE_NONE, 'Do you want to generate front filters / facets / conditions?')->addOption('haveFrontend', 'f', InputOption::VALUE_NONE, 'Do you need a frontend controller?')->addOption('backendModel', null, InputOption::VALUE_OPTIONAL, 'If you need a backend application: What\'s the name of its main model?')->addOption('haveModels', 'm', InputOption::VALUE_NONE, 'Do you want custom models to be created and registered?')->addOption('haveCommands', 'c', InputOption::VALUE_NONE, 'Do you want your plugin to be prepared for commands?')->addOption('haveWidget', 'w', InputOption::VALUE_NONE, 'Do you want your plugin to have a widget?')->addOption('haveApi', 'a', InputOption::VALUE_NONE, 'Do you want your plugin to have an api resource?')->addOption('haveElasticSearch', 'e', InputOption::VALUE_NONE, 'Do you want your plugin to have an elastic search integration?')->addOption('licenseHeader', null, InputOption::VALUE_OPTIONAL, 'File with your desired license header', '')->setHelp(<<<EOF
The <info>%command.name%</info> creates a new plugin.
EOF
);
    }