當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。