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

+32
View File
@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace MauticPlugin\MT3SMarketingProgramBundle\Event;
/**
* The plugin's event names. Dispatched by ProgramModel with a ProgramEvent payload.
*/
final class MT3SMarketingProgramEvents
{
/** Before a program is written to the database. */
public const PROGRAM_PRE_SAVE = 'mt3s.marketing_program.pre_save';
/** After a program was written to the database. */
public const PROGRAM_POST_SAVE = 'mt3s.marketing_program.post_save';
/** After a program was created (a POST_SAVE with a brand-new record). */
public const PROGRAM_CREATED = 'mt3s.marketing_program.created';
/** After an existing program was updated. */
public const PROGRAM_UPDATED = 'mt3s.marketing_program.updated';
/** Before a program (and its children) is removed from the database. */
public const PROGRAM_PRE_DELETE = 'mt3s.marketing_program.pre_delete';
/** After a program was removed from the database. */
public const PROGRAM_POST_DELETE = 'mt3s.marketing_program.post_delete';
/** After a program was removed from the database. */
public const PROGRAM_DELETED = 'mt3s.marketing_program.deleted';
}
+30
View File
@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace MauticPlugin\MT3SMarketingProgramBundle\Event;
use MauticPlugin\MT3SMarketingProgramBundle\Entity\Program;
use Symfony\Contracts\EventDispatcher\Event;
/**
* The payload of the plugin's mt3s.marketing_program.* events (see MT3SMarketingProgramEvents).
*/
final class ProgramEvent extends Event
{
public function __construct(
private readonly Program $program,
private readonly bool $isNew,
) {
}
public function getProgram(): Program
{
return $this->program;
}
public function isNew(): bool
{
return $this->isNew;
}
}