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

+13 -13
View File
@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace MauticPlugin\ProgramBundle\Controller;
namespace MauticPlugin\MT3SMarketingProgramBundle\Controller;
use Mautic\CoreBundle\Controller\AbstractStandardFormController;
use Symfony\Component\HttpFoundation\Request;
@@ -10,26 +10,26 @@ use Symfony\Component\HttpFoundation\Response;
/**
* List, create, edit and delete audiences (Programs > Audiences), the global directory of who the
* initiatives are aimed at, using core's standard CRUD flow. Audiences are independent of initiatives; initiatives
* link to them from their Audiences tab (InitiativeAudience carries the audience's priority in that
* initiative).
* programs are aimed at, using core's standard CRUD flow. Audiences are independent of programs; programs
* link to them from their Audiences tab (ProgramAudience carries the audience's priority in that
* program).
*
* Model program.audience (mautic.program.model.audience), permission base program:audiences, translation
* base mautic.program.audience.
* Model mt3smp.audience (mt3s.marketing_program.model.audience), permission base mt3smarketingprogram:audiences, translation
* base mt3s.marketing_program.audience.
*/
class AudienceController extends AbstractStandardFormController
{
public const ROUTE_INDEX = 'initiative_audience_index';
public const ROUTE_ACTION = 'initiative_audience_action';
public const ROUTE_INDEX = 'mt3s_marketing_program_audience_index';
public const ROUTE_ACTION = 'mt3s_marketing_program_audience_action';
protected function getModelName(): string
{
return 'program.audience';
return 'mt3smp.audience';
}
protected function getTemplateBase(): string
{
return '@Program/Audience';
return '@MT3SMarketingProgram/Audience';
}
protected function getIndexRoute(): string
@@ -44,7 +44,7 @@ class AudienceController extends AbstractStandardFormController
protected function getJsLoadMethodPrefix(): string
{
return 'programAudience';
return 'mt3sMpProgramAudience';
}
/**
@@ -62,14 +62,14 @@ class AudienceController extends AbstractStandardFormController
/**
* The audience's detail page (the directory entry, its persona attributes, its segments and
* the initiatives it is assigned to). The standard controller has no view action of its own, so it
* the programs it is assigned to). The standard controller has no view action of its own, so it
* is routed here.
*
* @param int $objectId
*/
public function viewAction(Request $request, $objectId): Response
{
return $this->viewStandard($request, $objectId, 'audience', 'initiative');
return $this->viewStandard($request, $objectId, 'audience', 'program');
}
/**