I moved working plugin from /plugins/pluginname directory to /vendor/myname/pluginname
URL on which I call plugin controller is
Before moving from first directory to another, plugin was working as expected. I moved plugin to new directory to make it reusable for other cake PHP apps.
Plugin is installed by composer.
Why do I have message
"Error: Controller class Index could not be found.". All controllers from plugin are not visible on app, throws the same error. Error is thrown from line 79 from file \vendor\cakephp\cakephp\src\Routing\Dispatcher.php
In main bootstrap.php file I put this line:
Plugin::load('MyName/PluginName', ['bootstrap' => false, 'routes' => true]);
Why plugin in vendor directory is not working in my case?
