以下是我的控制台的一个片段,我烤了一个shell,并立即尝试使用它,它应该输出getOptionParser,但它会抛出一个MissingShell Exception而不是任何想法?
└──╼ bin/cake bake shell coin --plugin WalletManager
Welcome to CakePHP v3.4.7 Console
---------------------------------------------------------------
App : src
Path: Projects/AltCoinWallet.Solutions/CakeCoin/src/
PHP : 5.6.30
---------------------------------------------------------------
Creating file plugins/WalletManager/src/Shell/CoinShell.php
Wrote `plugins/WalletManager/src/Shell/CoinShell.php`
└──╼ bin/cake coin
Exception: Shell class for "..." could not be found.
in [...src/Console/ShellDispatcher.php, line 327]
答案 0 :(得分:2)
你已经烘焙了一个插件shell,因此你需要引用插件:
bin/cake wallet_manager.coin
或
bin/cake WalletManager.coin
另见