0

The following is a snippet from my console, I baked a shell, and immediately try to use it, it should output getOptionParser, but it throws a MissingShell Exception instead, any ideas?

└──╼ 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]

1 Answer 1

2

You've baked a plugin shell, hence you need to refer to the plugin:

bin/cake wallet_manager.coin

or

bin/cake WalletManager.coin

See also

Sign up to request clarification or add additional context in comments.

3 Comments

└──╼ bin/cake WalletManager.coin Exception: Shell class for "WalletManager.Coin" could not be found. in [.../src/Console/ShellDispatcher.php, line 327]
@JeffreyL.Roberts Please try both syntaxes, make sure that the plugin is being loaded in your bootstrap, and that the autoloader contains your plugin and is up to date.
turns out, it wasn't in the composer.json autoloader

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.