當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Command::configure方法代碼示例

本文整理匯總了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
);
    }
開發者ID:CryptArc,項目名稱:xchain,代碼行數:11,代碼來源:LoadMissingBlocksCommand.php

示例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
);
    }
開發者ID:tokenly,項目名稱:laravel-api-provider,代碼行數:11,代碼來源:NewAPIUserCommand.php

示例3: configure

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        parent::configure();
        $this->addArgument('transaction-id', InputArgument::REQUIRED, 'Transaction ID')->setHelp(<<<EOF
Re-sends old transaction notifications
EOF
);
    }
開發者ID:CryptArc,項目名稱:xchain,代碼行數:11,代碼來源:ResendTransactionNotificationsCommand.php

示例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
);
    }
開發者ID:CryptArc,項目名稱:xchain,代碼行數:11,代碼來源:PopulateNotificationCommand.php

示例5: configure

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        parent::configure();
        $this->addArgument('address-uuid', InputArgument::REQUIRED, 'Address UUID')->setHelp(<<<EOF
Export WIF key
EOF
);
    }
開發者ID:CryptArc,項目名稱:xchain,代碼行數:11,代碼來源:ExportWIFCommand.php

示例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
);
    }
開發者ID:CryptArc,項目名稱:xchain,代碼行數:11,代碼來源:SendManualNotificationCommand.php

示例7: configure

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        parent::configure();
        $this->setHelp(<<<EOF
Show User API Credentials
EOF
);
    }
開發者ID:tokenly,項目名稱:laravel-api-provider,代碼行數:11,代碼來源:ListAPIUsersCommand.php


注:本文中的Illuminate\Console\Command::configure方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。