I’m attempting to create a simple Command using an example from the CakePHP documentation found here.
I bake a command using
bin/cake bake command Hello, thus creating a file called HelloCommand.php inside src/Command/.
The file contains the exact code the above link contains. However on running the command from console with the following command:
I get the following error:
Exception: Shell class for "Hello" could not be found. in [X:\xampp\htdocs\tools\vendor\cakephp\cakephp\src\Console\ShellDispatcher.php, line 327]
Why is it attempting to open a shell instead of the command. Am I missing something? If so I find it pretty unclear in the documentation.
Using CakePHP Version