refactor(naming): normalise the Smart Links domain to the bundle's canonical names (0.18.1)
One bundle, two domains (Marketing Programs and Smart Links), one naming scheme.\nNothing in the database changed (no tables, columns, URLs or stored data);\nthe runtime was rebuilt and verified live.\n\n- Route names mautic_smartlinks_* -> mt3s_smartlinks_* (paths unchanged);\n the menu ids follow\n- Model service aliases collapsed to one canonical alias per model:\n mautic.mt3smarketingprogram.model.<entity> (core's mautic.<x>.model.<x>\n pattern), so getModel('mt3smarketingprogram.smart_link'); the dead\n mt3s.* and mautic.mt3smp.*-era aliases are gone\n- Translation keys mautic.smartlinks.* -> mt3s.smart_links.*\n (mautic.config.tab.smartlinksconfig stays: core derives it)\n- Settings parameters smartlinks_utm_config/smartlinks_config ->\n mt3s_smart_links_utm_config/mt3s_smart_links_config, with both legacy\n keys (smartlinks_* of the standalone bundle, utm_manager_* of the\n UtmManagerBundle era) still readable until the settings are saved again\n- JS loader prefixes smartlinksSmartLink/smartlinksUtmTaxonomy ->\n mt3sMpSmartLink/mt3sMpUtmTaxonomy (the mt3sMp* family of the program\n domain)\n- Integration/Support/ConfigSupport -> SmartlinksConfigSupport; integration\n display names aligned ('MT3S Marketing Program' / 'Smart Links'); the\n dead mautic.plugin.smartlinks.name catalog keys removed\n- phpunit suite renamed UtmManagerBundle -> MT3SMarketingProgramBundle;\n version 0.18.1\n\nVerified: full php -l, 90/90 unit tests (phpunit 11.5 phar), cache clear +\nwarm + assets regenerate + plugins reload (as www-data), live: both lists\nand forms (mauticContent mt3sMpSmartLink/mt3sMpUtmTaxonomy), both config\ntabs, the menu labels, the program pages (regression), the public /l/y32b\nredirect through the legacy utm_manager_* settings (302 with the taxonomy's\nUTM values, wrong host and unknown slug 404), all ini catalogs parse, zero\nnew log errors.
This commit is contained in:
1 parent
dce849610c
commit
9d81d6c815
53 files changed
+777
-751
No files matched your search
@@ -12,20 +12,20 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
* Create, edit and delete UTM Taxonomies (Smart Links > UTM Taxonomies), using core's standard
|
||||
* CRUD flow.
|
||||
*
|
||||
* Model smartlinks.utm_taxonomy (mautic.smartlinks.model.utm_taxonomy), permission base
|
||||
* smartlinks:taxonomies, translation base mautic.smartlinks.taxonomies.
|
||||
* Model mt3smarketingprogram.utm_taxonomy (mautic.mt3smarketingprogram.model.utm_taxonomy), permission base
|
||||
* mt3smarketingprogram:taxonomies, translation base mt3s.smart_links.taxonomies.
|
||||
*
|
||||
* A taxonomy is never cloned: its name is unique, and a clone would collide immediately. A new
|
||||
* taxonomy is created from scratch.
|
||||
*/
|
||||
class UtmTaxonomyController extends AbstractStandardFormController
|
||||
{
|
||||
public const ROUTE_INDEX = 'mautic_smartlinks_taxonomies';
|
||||
public const ROUTE_ACTION = 'mautic_smartlinks_taxonomy_action';
|
||||
public const ROUTE_INDEX = 'mt3s_smart_links_taxonomies';
|
||||
public const ROUTE_ACTION = 'mt3s_smart_links_taxonomy_action';
|
||||
|
||||
protected function getModelName(): string
|
||||
{
|
||||
return 'smartlinks.utm_taxonomy';
|
||||
return 'mt3smarketingprogram.utm_taxonomy';
|
||||
}
|
||||
|
||||
protected function getTemplateBase(): string
|
||||
@@ -44,20 +44,20 @@ class UtmTaxonomyController extends AbstractStandardFormController
|
||||
}
|
||||
|
||||
/**
|
||||
* Core derives the JS loader method from the model name; no Mautic.<prefix>OnLoad exists for
|
||||
* taxonomies (the form needs none), but the prefix stays deterministic for future use.
|
||||
* The OnLoad JS prefix (no Mautic.mt3sMpUtmTaxonomyOnLoad exists: the form needs none),
|
||||
* deterministic for future use; core's fallback, the model name, would nothing listen to.
|
||||
*/
|
||||
protected function getJsLoadMethodPrefix(): string
|
||||
{
|
||||
return 'smartlinksUtmTaxonomy';
|
||||
return 'mt3sMpUtmTaxonomy';
|
||||
}
|
||||
|
||||
/**
|
||||
* Core builds mautic.<model name>; every key of the feature lives under mautic.smartlinks.taxonomies.
|
||||
* Core builds mautic.<model name>; every key of the feature lives under mt3s.smart_links.taxonomies.
|
||||
*/
|
||||
protected function getTranslationBase(): string
|
||||
{
|
||||
return 'mautic.smartlinks.taxonomies';
|
||||
return 'mt3s.smart_links.taxonomies';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user