本文整理汇总了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
);
}