refactor(plugin): rename Plan to Program and add audience/UTM routes
Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
This commit is contained in:
1 parent
8268fad886
commit
71ff11390b
121 files changed
+5011
-2874
No files matched your search
@@ -2,33 +2,33 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MauticPlugin\PlanBundle\Controller;
|
||||
namespace MauticPlugin\ProgramBundle\Controller;
|
||||
|
||||
use Mautic\CoreBundle\Controller\AbstractStandardFormController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
* List, create, edit and delete stakeholders (Planning > Stakeholders), the global directory, using
|
||||
* core's standard CRUD flow. Stakeholders are independent of plans; plans link to them from their
|
||||
* 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
|
||||
* Stakeholders tab.
|
||||
*
|
||||
* Model plan.stakeholder (mautic.plan.model.stakeholder), permission base plan:stakeholders,
|
||||
* translation base mautic.plan.stakeholder.
|
||||
* Model program.stakeholder (mautic.program.model.stakeholder), permission base program:stakeholders,
|
||||
* translation base mautic.program.stakeholder.
|
||||
*/
|
||||
class StakeholderController extends AbstractStandardFormController
|
||||
{
|
||||
public const ROUTE_INDEX = 'plan_stakeholder_index';
|
||||
public const ROUTE_ACTION = 'plan_stakeholder_action';
|
||||
public const ROUTE_INDEX = 'initiative_stakeholder_index';
|
||||
public const ROUTE_ACTION = 'initiative_stakeholder_action';
|
||||
|
||||
protected function getModelName(): string
|
||||
{
|
||||
return 'plan.stakeholder';
|
||||
return 'program.stakeholder';
|
||||
}
|
||||
|
||||
protected function getTemplateBase(): string
|
||||
{
|
||||
return '@Plan/Stakeholder';
|
||||
return '@Program/Stakeholder';
|
||||
}
|
||||
|
||||
protected function getIndexRoute(): string
|
||||
@@ -43,7 +43,7 @@ class StakeholderController extends AbstractStandardFormController
|
||||
|
||||
protected function getJsLoadMethodPrefix(): string
|
||||
{
|
||||
return 'planStakeholder';
|
||||
return 'programStakeholder';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user