-
Notifications
You must be signed in to change notification settings - Fork 33
/
MauticContactClientBundle.php
41 lines (37 loc) · 1.16 KB
/
MauticContactClientBundle.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
40
41
<?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\MauticContactClientBundle;
use Doctrine\DBAL\Schema\Schema;
use Exception;
use Mautic\CoreBundle\Factory\MauticFactory;
use Mautic\PluginBundle\Bundle\PluginBundleBase;
use Mautic\PluginBundle\Entity\Plugin;
class MauticContactClientBundle 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
) {
// By default this is disabled, but for this plugin doctrine updates the schema faithfully.
self::updatePluginSchema($metadata, $installedSchema, $factory);
}
}