本文整理匯總了PHP中Illuminate\Console\Command::configure方法的典型用法代碼示例。如果您正苦於以下問題:PHP Command::configure方法的具體用法?PHP Command::configure怎麽用?PHP Command::configure使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Console\Command
的用法示例。
在下文中一共展示了Command::configure方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
parent::configure();
$this->addOption('maximum-blocks', 'm', InputOption::VALUE_OPTIONAL, 'Maximum blocks to backfill', 10)->setHelp(<<<EOF
Backfills any missing blocks
EOF
);
}
示例2: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
parent::configure();
$this->addArgument('email', InputArgument::REQUIRED, 'Email Address')->addOption('password', 'p', InputOption::VALUE_OPTIONAL, 'Password', null)->setHelp(<<<EOF
Create a new user with API Credentials
EOF
);
}
示例3: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
parent::configure();
$this->addArgument('transaction-id', InputArgument::REQUIRED, 'Transaction ID')->setHelp(<<<EOF
Re-sends old transaction notifications
EOF
);
}
示例4: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
parent::configure();
$this->addOption('endpoint', 'e', InputOption::VALUE_OPTIONAL, 'Webhook endpoint')->addArgument('scenario', InputArgument::OPTIONAL, 'Scenario number to load', 1)->setHelp(<<<EOF
Runs a scenario to load a notification into the notification queue
EOF
);
}
示例5: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
parent::configure();
$this->addArgument('address-uuid', InputArgument::REQUIRED, 'Address UUID')->setHelp(<<<EOF
Export WIF key
EOF
);
}
示例6: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
parent::configure();
$this->addOption('block', 'b', InputOption::VALUE_OPTIONAL, 'Block JSON file or height')->addOption('transaction', 't', InputOption::VALUE_NONE, 'Process transaction')->addOption('source', 's', InputOption::VALUE_OPTIONAL, 'Source Address')->addOption('destination', 'd', InputOption::VALUE_OPTIONAL, 'Destination Address')->addOption('asset', 'a', InputOption::VALUE_OPTIONAL, 'Asset (LTBCOIN, BTC)', 'BTC')->addOption('quantity', 'u', InputOption::VALUE_OPTIONAL, 'Quantity (float)', 1.0)->addOption('confirmations', 'c', InputOption::VALUE_OPTIONAL, 'Confirmations', 1)->addOption('confirmed-block-height', 'i', InputOption::VALUE_OPTIONAL, 'Confirmed Block Height')->addOption('txid', 'x', InputOption::VALUE_OPTIONAL, 'Transaction ID', '1001')->setHelp(<<<EOF
Manually send a notification
EOF
);
}
示例7: configure
/**
* {@inheritdoc}
*/
protected function configure()
{
parent::configure();
$this->setHelp(<<<EOF
Show User API Credentials
EOF
);
}