# |
Oct 14th 2019, 18:03 |
david |
sorry, CmsSection is the name of the plugin |
# |
Oct 14th 2019, 18:03 |
ricksaccous |
is your application skeleton up to date? |
# |
Oct 14th 2019, 18:03 |
david |
Application.php has $this->addPlugin('CmsSection'); |
# |
Oct 14th 2019, 18:02 |
david |
yes |
# |
Oct 14th 2019, 18:02 |
admad |
You have loaded the plugin in application right? |
# |
Oct 14th 2019, 18:02 |
admad |
Then cake shouldn't have problem finding it and issue is something else. |
# |
Oct 14th 2019, 18:01 |
david |
yes, it is |
# |
Oct 14th 2019, 18:01 |
admad |
Is your plugin listed in vendor/cakephp-plugins.php? |
# |
Oct 14th 2019, 17:59 |
graziel |
and by extension also cake |
# |
Oct 14th 2019, 17:59 |
graziel |
doesnt matter autoload needs to know where to look for classes |
# |
Oct 14th 2019, 17:58 |
david |
I have baked it, but my plugin is not a plugin from composer |
# |
Oct 14th 2019, 17:57 |
graziel |
thats why bake is better it does it for you |
# |
Oct 14th 2019, 17:57 |
graziel |
to autoload section |
# |
Oct 14th 2019, 17:56 |
graziel |
"MyPlugin\\": "./plugins/MyPlugin/src/" |
# |
Oct 14th 2019, 17:56 |
graziel |
also if you didnt change composer.json you need to add |
# |
Oct 14th 2019, 17:56 |
david |
no changes... after dump-autoload |
# |
Oct 14th 2019, 17:54 |
admad |
Try running `composer dump-autoload` |
# |
Oct 14th 2019, 17:54 |
david |
can't remember, really |
# |
Oct 14th 2019, 17:54 |
david |
updated, I think |
# |
Oct 14th 2019, 17:54 |
david |
mmm |
# |
Oct 14th 2019, 17:53 |
graziel |
cake version |
# |
Oct 14th 2019, 17:53 |
david |
? |
# |
Oct 14th 2019, 17:53 |
david |
what do you mean with "updated code or new" |
# |
Oct 14th 2019, 17:51 |
graziel |
it might be same problem as in https://discourse.cakephp.org/t/running-commands-attempts-to-load-shell-instead/4381/10?u=graziel |
# |
Oct 14th 2019, 17:51 |
david |
and bake command has created it with the shell |
# |
Oct 14th 2019, 17:51 |
graziel |
i ment whole app |
# |
Oct 14th 2019, 17:51 |
david |
I have deleted /plugins/MyPlugin/src/Shell |
# |
Oct 14th 2019, 17:50 |
david |
new code |
# |
Oct 14th 2019, 17:50 |
graziel |
hm is it updated code or new? |
# |
Oct 14th 2019, 17:49 |
david |
same result |
# |
Oct 14th 2019, 17:48 |
graziel |
bake is great i use it everytime i can |
# |
Oct 14th 2019, 17:48 |
david |
(didn't know) |
# |
Oct 14th 2019, 17:48 |
david |
ok, I'll try |
# |
Oct 14th 2019, 17:48 |
david |
oh |
# |
Oct 14th 2019, 17:47 |
graziel |
why move bake has ability to bake into plugin |
# |
Oct 14th 2019, 17:47 |
david |
I have baked a shell and moved to /plugins/MyPlugin/src/Shell, with the same result: commands not found by ./cake |
# |
Oct 14th 2019, 17:42 |
david |
in fact, my plugin only have the shell |
# |
Oct 14th 2019, 17:41 |
graziel |
try baking just to be sure its not typo or silly mistake |
# |
Oct 14th 2019, 17:41 |
david |
no |
# |
Oct 14th 2019, 17:41 |
graziel |
are you using bake to create it? |
# |
Oct 14th 2019, 17:38 |
david |
if my shell is under src/Shell it works, but when I move the shell to /plugins/MyPlugin/src/Shell. commands are missing |