Created a mautic plugin based on doc and run following command :
php app/console cache:warmup --env=prod --no-debug
php app/console mautic:plugins:reload
But i am not able to see the plugin. please tell me the steps i may be missing.
I have tried one of sample plugins and it seems to work and using that i have tried to create a sample plugin but i am getting an error. I have check the log and got below due which it seemed the plugin was not showing
mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: âmautic.helloworld.model.contact is not a registered container key.â at /app/app/bundles/CoreBundle/Factory/ModelFactory.php line 58 {âexceptionâ:"[object] (InvalidArgumentException(code: 0): mautic.helloworld.model.contact is not a registered container key. at /app/app/bundles/CoreBundle/Factory/ModelFactory.php:58)"}
In config i have set the following
âservicesâ => array(
âmodelsâ => [
âmautic.helloworld.model.contactâ => [
âclassâ => \MauticPlugin\MauticHelloWorldBundle\Model\ContactModel::class
],
],
),