friendsofmautic / bundle-skeleton
Mautic files available via composer for easier develop of a new bundle
2.11.0
2017-11-28 16:34 UTC
Requires
- php: >=5.6.19 < 7.2
- mautic/core: 2.11.0
Requires (Dev)
- php: >=5.6.19
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-11-09 18:11:46 UTC
README
<?php namespace MauticPlugin\VocativeBundle; use Mautic\PluginBundle\Bundle\PluginBundleBase; class VocativeBundle extends PluginBundleBase { }
Try that in your IDE without the PluginBundleBase class available. Pain in the %body_part%.
Purpose
By fetching this skeleton to your code, the problem is solved. Your IDE will finally get access to all those classes you are inheriting from.
Usage
composer require-dev friendsofmautic/bundle-skeleton
- copy & paste whole MauticBundleSkeleton under name of your bundle name to a place you want
- replace in the copied MauticBundleSkeleton the Skeleton word in every place by your bundle name
- get inspired by EventListener\WhyMeSubscriber and remove it, or rewrite
Troubleshooting
If any error happens, check the logs for what happened.
- they are placed in app/logs dir in your Mautic, like
/var/www/mautic/app/logs/mautic_prod-2016-02-19.php
for example - or, if they are more fatal or just Mautic does not catch them (error 500), see your web-server logs, like
/var/log/apache2/error.log
Technical details
This library provides Mautic code by composer (packagist.org respectively),
Hint for mautic Twig plugin
If you are going to create a Mautic plugin for Twig, a good start can be mautic-twig-plugin-skeleton.