mautic / app /bundles /PluginBundle /Tests /Helper /PluginBundleBaseStub.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
raw
history blame contribute delete
845 Bytes
<?php
namespace Mautic\PluginBundle\Tests\Helper;
use Doctrine\DBAL\Schema\Schema;
use Mautic\CoreBundle\Factory\MauticFactory;
use Mautic\PluginBundle\Entity\Plugin;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* A stub Base Bundle class which implements stub methods for testing purposes.
*/
abstract class PluginBundleBaseStub extends Bundle
{
/**
* @throws \Exception
*/
public static function onPluginInstall(Plugin $plugin, MauticFactory $factory, $metadata = null, $installedSchema = null): void
{
}
/**
* Called by PluginController::reloadAction when the addon version does not match what's installed.
*
* @throws \Exception
*/
public static function onPluginUpdate(Plugin $plugin, MauticFactory $factory, $metadata = null, Schema $installedSchema = null)
{
}
}