refactor(plugin): rebrand as MT3SMarketingProgram, release 0.17.0

Rename the plugin's vendor/namespace from experiential/Program to mt3s/MT3SMarketingProgram (composer: mt3s/mautic-marketing-program-bundle):

- ProgramBundle -> MT3SMarketingProgramBundle; extension, integration,
  config support, permissions, events and twig extension renamed likewise
- Initiative* -> Program*: controller (InitiativeController ->
  ProgramController), model, entities, repositories, form types and views
  (new _tabs/_task_table/_tab_table_filter partials, details page)
- Settings config form theme -> _config_mt3smarketingprogramconfig_widget;
  routes and translations re-prefixed (mt3s_marketing_program_*)
- Assets: icon.svg -> mt3s-mp-icon.svg; program.js -> mt3s-mp-program.js
  (OnLoad hooks renamed mt3sMpProgram*)
- Add Command/RefreshStatsCommand; Migrations/Version_0_17_0.php renames
  the tables to mt3s_mp_program_*
This commit is contained in:
Alexandre Gain committed 2026-11-15 17:48:01 +01:00
1 parent 687d33d30c
commit ea88b7a772
131 files changed
+3238 -2836

No files matched your search

+8 -8
View File
@@ -2,24 +2,24 @@
declare(strict_types=1);
namespace MauticPlugin\ProgramBundle\Model;
namespace MauticPlugin\MT3SMarketingProgramBundle\Model;
use libphonenumber\NumberParseException;
use libphonenumber\PhoneNumberFormat;
use libphonenumber\PhoneNumberUtil;
use Mautic\CoreBundle\Model\FormModel;
use MauticPlugin\ProgramBundle\Entity\Stakeholder;
use MauticPlugin\ProgramBundle\Entity\StakeholderRepository;
use MauticPlugin\ProgramBundle\Form\Type\StakeholderType;
use MauticPlugin\MT3SMarketingProgramBundle\Entity\Stakeholder;
use MauticPlugin\MT3SMarketingProgramBundle\Entity\StakeholderRepository;
use MauticPlugin\MT3SMarketingProgramBundle\Form\Type\StakeholderType;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
/**
* Available as mautic.program.model.stakeholder, or getModel('program.stakeholder').
* Available as mt3s.marketing_program.model.stakeholder, or getModel('mt3smp.stakeholder').
*
* On save, the phone number is normalized to E.164 using the default region from Settings >
* Configuration > Initiative Settings (parameter program_stakeholder_phone_region, FR by default). A number that
* Configuration > Program Settings (parameter mt3s_marketing_program_stakeholder_phone_region, FR by default). A number that
* doesn't parse (free input, extensions…) is kept exactly as typed: the save is never blocked.
*/
class StakeholderModel extends FormModel
@@ -27,7 +27,7 @@ class StakeholderModel extends FormModel
/**
* local.php parameter: default region for phone numbers typed without a country prefix.
*/
public const PHONE_REGION_PARAMETER = 'program_stakeholder_phone_region';
public const PHONE_REGION_PARAMETER = 'mt3s_marketing_program_stakeholder_phone_region';
public const DEFAULT_PHONE_REGION = 'FR';
@@ -41,7 +41,7 @@ class StakeholderModel extends FormModel
public function getPermissionBase(): string
{
return 'program:stakeholders';
return 'mt3smarketingprogram:stakeholders';
}
public function getEntity($id = null): ?Stakeholder