Newscoop\PluginGeneratorBundle\Command\GeneratePluginBundleCommand::configure PHP Метод

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

См. также: Command
protected configure ( )
    protected function configure()
    {
        $this->setDefinition(array(new InputOption('vendor', '', InputOption::VALUE_REQUIRED, 'The vendor of the plugin to create'), new InputOption('namespace', '', InputOption::VALUE_REQUIRED, 'The namespace of the plugin to create'), new InputOption('dir', '', InputOption::VALUE_REQUIRED, 'The directory where to create the bundle'), new InputOption('bundle-name', '', InputOption::VALUE_REQUIRED, 'The required bundle name'), new InputOption('plugin-name', '', InputOption::VALUE_REQUIRED, 'The required plugin name'), new InputOption('format', '', InputOption::VALUE_REQUIRED, 'Use the format for configuration files (php, xml, yml, or annotation)'), new InputOption('structure', '', InputOption::VALUE_NONE, 'Whether to generate the whole directory structure'), new InputOption('admin', '', InputOption::VALUE_NONE, 'Whether to generate a plugin admin structure'), new InputOption('zip', '', InputOption::VALUE_NONE, 'Whether to generate a private plugin zip archive')))->setDescription('Generates a Newscoop Plugin bundle')->setHelp(<<<EOT
The <info>generate:plugin-bundle</info> command helps you generates new Newscoop Plugin bundles.

By default, the command interacts with the developer to tweak the generation.
Any passed option will be used as a default value for the interaction
(<comment>--namespace</comment> is the only one needed if you follow the
conventions):

<info>php app/console generate:plugin-bundle --plugin-name=NewFeature</info>

If you want to disable any user interaction, use <comment>--no-interaction</comment> but don't forget to pass all needed options:

<info>php app/console generate:plugin-bundle --plugin-name=NewFeature --dir=src [--bundle-name=...] --no-interaction</info>

Note that the plugin-name should NOT include the words "Plugin" or "Bundle".
EOT
)->setName('generate:plugin-bundle');
    }