forked from TheDMSGroup/mautic-contact-ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MauticContactLedgerBundle.php
39 lines (35 loc) · 1.1 KB
/
MauticContactLedgerBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*
* @copyright 2018 Mautic Contributors. All rights reserved
* @author Digital Media Solutions, LLC
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace MauticPlugin\MauticContactLedgerBundle;
use Doctrine\DBAL\Migrations\Version;
use Doctrine\DBAL\Schema\Schema;
use Mautic\CoreBundle\Factory\MauticFactory;
use Mautic\PluginBundle\Bundle\PluginBundleBase;
use Mautic\PluginBundle\Entity\Plugin;
/**
* Class MauticContactLedgerBundle.
*/
class MauticContactLedgerBundle extends PluginBundleBase
{
/**
* Called by PluginController::reloadAction when the addon version does not match what's installed.
*
* @param Plugin $plugin
* @param MauticFactory $factory
* @param null $metadata
* @param Schema $installedSchema
*
* @throws \Exception
*/
public static function onPluginUpdate(Plugin $plugin, MauticFactory $factory, $metadata = null, Schema $installedSchema = null)
{
self::updatePluginSchema($metadata, $installedSchema, $factory);
}
}