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:
1 parent
687d33d30c
commit
ea88b7a772
131 files changed
+3238
-2836
No files matched your search
@@ -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,25 +10,25 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
* List, create, edit and delete stakeholders (Programs > Stakeholders), the global directory, using
|
||||
* core's standard CRUD flow. Stakeholders are independent of initiatives; initiatives link to them from their
|
||||
* core's standard CRUD flow. Stakeholders are independent of programs; programs link to them from their
|
||||
* Stakeholders tab.
|
||||
*
|
||||
* Model program.stakeholder (mautic.program.model.stakeholder), permission base program:stakeholders,
|
||||
* translation base mautic.program.stakeholder.
|
||||
* Model mt3smp.stakeholder (mt3s.marketing_program.model.stakeholder), permission base mt3smarketingprogram:stakeholders,
|
||||
* translation base mt3s.marketing_program.stakeholder.
|
||||
*/
|
||||
class StakeholderController extends AbstractStandardFormController
|
||||
{
|
||||
public const ROUTE_INDEX = 'initiative_stakeholder_index';
|
||||
public const ROUTE_ACTION = 'initiative_stakeholder_action';
|
||||
public const ROUTE_INDEX = 'mt3s_marketing_program_stakeholder_index';
|
||||
public const ROUTE_ACTION = 'mt3s_marketing_program_stakeholder_action';
|
||||
|
||||
protected function getModelName(): string
|
||||
{
|
||||
return 'program.stakeholder';
|
||||
return 'mt3smp.stakeholder';
|
||||
}
|
||||
|
||||
protected function getTemplateBase(): string
|
||||
{
|
||||
return '@Program/Stakeholder';
|
||||
return '@MT3SMarketingProgram/Stakeholder';
|
||||
}
|
||||
|
||||
protected function getIndexRoute(): string
|
||||
@@ -43,7 +43,7 @@ class StakeholderController extends AbstractStandardFormController
|
||||
|
||||
protected function getJsLoadMethodPrefix(): string
|
||||
{
|
||||
return 'programStakeholder';
|
||||
return 'mt3sMpProgramStakeholder';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user