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
+10
-8
@@ -16,17 +16,19 @@ return function (ContainerConfigurator $configurator): void {
|
||||
'Tests',
|
||||
];
|
||||
|
||||
$services->load('MauticPlugin\\PlanBundle\\', '../')
|
||||
$services->load('MauticPlugin\\ProgramBundle\\', '../')
|
||||
->exclude('../{'.implode(',', array_merge(MauticCoreExtension::DEFAULT_EXCLUDES, $excludes)).'}');
|
||||
|
||||
// Entity/ is excluded above; repositories must still be services for Doctrine to build them.
|
||||
$services->load('MauticPlugin\\PlanBundle\\Entity\\', '../Entity/*Repository.php')
|
||||
$services->load('MauticPlugin\\ProgramBundle\\Entity\\', '../Entity/*Repository.php')
|
||||
->tag(Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\ServiceRepositoryCompilerPass::REPOSITORY_SERVICE_TAG);
|
||||
|
||||
// Lets core resolve the model with getModel('plan') / getModel('plan.plan').
|
||||
$services->alias('mautic.plan.model.plan', MauticPlugin\PlanBundle\Model\PlanModel::class);
|
||||
// getModel('plan.task').
|
||||
$services->alias('mautic.plan.model.task', MauticPlugin\PlanBundle\Model\TaskModel::class);
|
||||
// getModel('plan.stakeholder').
|
||||
$services->alias('mautic.plan.model.stakeholder', MauticPlugin\PlanBundle\Model\StakeholderModel::class);
|
||||
// Lets core resolve the model with getModel('program').
|
||||
$services->alias('mautic.program.model.initiative', MauticPlugin\ProgramBundle\Model\InitiativeModel::class);
|
||||
// getModel('program.task').
|
||||
$services->alias('mautic.program.model.task', MauticPlugin\ProgramBundle\Model\TaskModel::class);
|
||||
// getModel('program.stakeholder').
|
||||
$services->alias('mautic.program.model.stakeholder', MauticPlugin\ProgramBundle\Model\StakeholderModel::class);
|
||||
// getModel('program.audience').
|
||||
$services->alias('mautic.program.model.audience', MauticPlugin\ProgramBundle\Model\AudienceModel::class);
|
||||
};
|
||||
Reference in new issue
Block a user