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,22 +2,22 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MauticPlugin\ProgramBundle\Model;
|
||||
namespace MauticPlugin\MT3SMarketingProgramBundle\Model;
|
||||
|
||||
use Mautic\CoreBundle\Model\FormModel;
|
||||
use MauticPlugin\ProgramBundle\Entity\Audience;
|
||||
use MauticPlugin\ProgramBundle\Entity\AudienceRepository;
|
||||
use MauticPlugin\ProgramBundle\Form\Type\AudienceType;
|
||||
use MauticPlugin\MT3SMarketingProgramBundle\Entity\Audience;
|
||||
use MauticPlugin\MT3SMarketingProgramBundle\Entity\AudienceRepository;
|
||||
use MauticPlugin\MT3SMarketingProgramBundle\Form\Type\AudienceType;
|
||||
use Symfony\Component\Form\FormFactoryInterface;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
|
||||
|
||||
/**
|
||||
* Available as mautic.program.model.audience, or getModel('program.audience').
|
||||
* Available as mt3s.marketing_program.model.audience, or getModel('mt3smp.audience').
|
||||
*
|
||||
* Audiences are a global directory (Programs > Audiences), independent of plans; plans link to
|
||||
* them from their Audiences tab through InitiativeAudience (which carries the audience's priority in
|
||||
* that initiative).
|
||||
* them from their Audiences tab through ProgramAudience (which carries the audience's priority in
|
||||
* that program).
|
||||
*/
|
||||
class AudienceModel extends FormModel
|
||||
{
|
||||
@@ -31,7 +31,7 @@ class AudienceModel extends FormModel
|
||||
|
||||
public function getPermissionBase(): string
|
||||
{
|
||||
return 'program:audiences';
|
||||
return 'mt3smarketingprogram:audiences';
|
||||
}
|
||||
|
||||
public function getEntity($id = null): ?Audience
|
||||
|
||||
Reference in new issue
Block a user