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
],
],
),