当前位置: 首页>>代码示例>>PHP>>正文


PHP Command::configure方法代码示例

本文整理汇总了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)');
 }
开发者ID:ecompass,项目名称:core,代码行数:7,代码来源:decryptall.php

示例2: configure

 protected function configure()
 {
     parent::configure();
     $this->setName('module');
     $this->setDescription('Generate a barebone module');
     $this->addArgument('ModuleName', InputArgument::REQUIRED, 'Module name');
 }
开发者ID:middleout,项目名称:mdo-bundle-zf2-scaffold,代码行数:7,代码来源:ModuleCommand.php

示例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();
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_odoo,代码行数:10,代码来源:Products.php

示例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();
 }
开发者ID:tonydub,项目名称:jarvis,代码行数:10,代码来源:SetupCommand.php

示例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();
 }
开发者ID:sergeycherepanov,项目名称:m2gen,代码行数:7,代码来源:GeneratorCommand.php

示例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.');
 }
开发者ID:graste,项目名称:environaut,代码行数:10,代码来源:Command.php

示例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)');
 }
开发者ID:Apolli,项目名称:GenjSocialFeedBundle,代码行数:7,代码来源:SocialFeedCommand.php

示例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.");
 }
开发者ID:oasmobile,项目名称:php-slimapp,代码行数:7,代码来源:InitializeProjectCommand.php

示例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();
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:10,代码来源:DevTestsRunCommand.php

示例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');
 }
开发者ID:markwu,项目名称:simpleid,代码行数:7,代码来源:MigrateConfigCommand.php

示例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();
 }
开发者ID:pleminh,项目名称:magemtoo,代码行数:7,代码来源:GenerateModule.php

示例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!');
 }
开发者ID:rchicoli,项目名称:owncloud-core,代码行数:7,代码来源:EncryptAll.php

示例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
);
    }
开发者ID:krillzip,项目名称:diatheke,代码行数:8,代码来源:DiathekeSearchCommand.php

示例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
);
    }
开发者ID:krillzip,项目名称:diatheke,代码行数:8,代码来源:DiathekeListCommand.php

示例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
);
    }
开发者ID:krillzip,项目名称:diatheke,代码行数:8,代码来源:DiathekeConfigCommand.php


注:本文中的Symfony\Component\Console\Command\Command::configure方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。