本文整理汇总了PHP中Symfony\Component\Console\Command\Command::configure方法的典型用法代码示例。如果您正苦于以下问题:PHP Command::configure方法的具体用法?PHP Command::configure怎么用?PHP Command::configure使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symfony\Component\Console\Command\Command
的用法示例。
在下文中一共展示了Command::configure方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configure
protected function configure()
{
parent::configure();
$this->setName('encryption:decrypt-all');
$this->setDescription('This will disable server-side encryption and decrypt all files for ' . 'all users if it is supported by your encryption module. ' . 'Please make sure that no user access his files during this process!');
$this->addArgument('user', InputArgument::OPTIONAL, 'user for which you want to decrypt all files (optional)');
}
示例2: configure
protected function configure()
{
parent::configure();
$this->setName('module');
$this->setDescription('Generate a barebone module');
$this->addArgument('ModuleName', InputArgument::REQUIRED, 'Module name');
}
示例3: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
$this->setName('prxgt:odoo:replicate-products');
$this->setDescription('Pull products list from Odoo and replicate data into Magento.');
$this->addArgument('ids', InputArgument::OPTIONAL, 'Comma-delimited list of Odoo IDs to replicate (./magento prxgt:odoo:replicate-products 1,2,...); if missed - all products will be replicated;');
parent::configure();
}
示例4: configure
/**
* @{inheritdoc}
*/
protected function configure()
{
$this->setDescription('Install editor configuration');
$this->addOption('editor', null, InputOption::VALUE_REQUIRED, 'Which editor to use', 'subl');
$this->addOption('force', null, InputOption::VALUE_NONE, 'Overwrite configuration files');
parent::configure();
}
示例5: configure
protected function configure()
{
$this->setName('generate:module');
$this->setDescription('Build a magento 2 module from the command line');
$this->addArgument('name', InputArgument::REQUIRED, 'Module Name ( Test/Module/ ) ');
parent::configure();
}
示例6: configure
/**
* Defines default options for all commands.
*/
protected function configure()
{
parent::configure();
$this->addOption('bootstrap', 'b', InputOption::VALUE_OPTIONAL, 'Path to bootstrap file that should be required prior start.');
$this->addOption('include-path', 'i', InputOption::VALUE_OPTIONAL, 'Path that should be prepended to the default PHP include_path.');
$this->addOption('autoload-dir', 'a', InputOption::VALUE_OPTIONAL, 'Path from where to load custom classes specified in config etc.');
}
示例7: configure
protected function configure()
{
parent::configure();
$this->setName('genj:social-feed');
$this->setDescription('Retrieve Social Media posts from Twitter, Facebook or Instagram');
$this->addOption('provider', null, InputOption::VALUE_REQUIRED, 'Select which providers to use in a comma seperated list. (No spaces, valid options: facebook, twitter, instagram)');
}
示例8: configure
protected function configure()
{
parent::configure();
$this->setName('slimapp:project:init');
$this->setDescription("Initialize project directory structure.");
$this->addOption('project-root', 'p', InputOption::VALUE_REQUIRED, "Project root directory.");
}
示例9: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
$this->setupTestInfo();
$this->setName(self::COMMAND_NAME)->setDescription('Runs tests');
$this->addArgument(self::INPUT_ARG_TYPE, InputArgument::OPTIONAL, 'Type of test to run. Available types: ' . implode(', ', array_keys($this->types)), 'default');
parent::configure();
}
示例10: configure
protected function configure()
{
parent::configure();
$this->setName('migrate-config')->setDescription('Converts a SimpleID 1 configuration file to SimpleID 2');
$this->addArgument('input', InputArgument::REQUIRED, 'File name of SimpleID 1 config.php');
$this->addArgument('output', InputArgument::OPTIONAL, 'Output file name, or STDOUT if missing');
}
示例11: configure
protected function configure()
{
$this->setName('magemtoo:generate:module');
$this->setDescription('Generates a module base skeleton');
$this->setDefinition([new InputOption('vendor-name', null, InputOption::VALUE_REQUIRED, 'The vendor name - used for namespace - eg : Magemtoo'), new InputOption('module-name', null, InputOption::VALUE_REQUIRED, 'The module name - word that describes what the module does. eg : Swifter')]);
parent::configure();
}
示例12: configure
protected function configure()
{
parent::configure();
$this->setName('encryption:encrypt-all');
$this->setDescription('Encrypt all files for all users');
$this->setHelp('This will encrypt all files for all users. ' . 'Please make sure that no user access his files during this process!');
}
示例13: configure
protected function configure()
{
parent::configure();
$this->setName('diatheke:search')->setDescription('Searching in greek')->setDefinition(array())->addOption('query', 'k', InputOption::VALUE_OPTIONAL, 'Use search term for current translation')->addOption('strongs', 's', InputOption::VALUE_OPTIONAL, 'Use search term in greek')->setHelp(<<<EOT
The <info>diatheke:search</info> command searches a bible translation for a specific word and returns the result
EOT
);
}
示例14: configure
protected function configure()
{
parent::configure();
$this->setName('diatheke:list')->setDescription('Lists installed diatheke modules')->setDefinition(array(new InputArgument('list', InputArgument::REQUIRED, '[all|bible|dictionary|commentary|book|locale]'), new InputOption('long', 'l', InputOption::VALUE_NONE, 'Long list (TODO)'), new InputOption('raw', 'r', InputOption::VALUE_NONE, 'Raw output')))->setHelp(<<<EOT
The <info>diatheke:list</info> command lists installed modules in the diatheke environment
EOT
);
}
示例15: configure
protected function configure()
{
parent::configure();
$this->setName('diatheke:config')->setDescription('Diatheke configuration through user interaction')->setDefinition(array(new InputOption('export', 'e', InputOption::VALUE_REQUIRED, 'Stream to export information to')))->setHelp(<<<EOT
The <info>diatheke:config</info> command lets the user set diatheke configuration and export data.
EOT
);
}