Document registering a custom Menu in Config/services.php (Mautic 8) - #627
Document registering a custom Menu in Config/services.php (Mautic 8)#627promptless-for-oss wants to merge 5 commits into
Conversation
Mautic 8 (mautic/mautic PR #17116) removed the ServicePass compiler pass and the 'services > menus' array in bundle Config/config.php. Add a 'Registering a custom Menu' section to plugins/config.rst documenting the knp_menu.menu MenuItem and knp_menu.renderer MenuRenderer services a Plugin now declares in Config/services.php, with a before/after migration example and a forward cross-reference from 'Available menus'.
|
I noticed that some CI checks failed for this PR. I'm investigating whether the failures are caused by this suggestion. If they're unrelated or pre-existing, I'll leave this suggestion unchanged and create a separate suggestion if a standalone docs fix is needed. |
adiati98
left a comment
There was a problem hiding this comment.
@promptless-for-oss please address the Vale errors and warnings. If the capitalizations are correct, wrap them in vale off/on statements.
|
Thanks @adiati98 — on it. I'll address the Vale errors and warnings on this PR, wrapping any intentionally-correct capitalizations in vale off/on statements, and follow up here once the changes are pushed. |
Wrap intentionally-correct code/doc identifiers (reference-path segments and the lowercase plugins/ filesystem path) in vale off/on comments per maintainer review, and rephrase one passive sentence to active voice. No capitalization changed.
|
Thanks @adiati98 — I've addressed the Vale review on this PR. The three flagged capitalizations that are intentionally correct — the One finding can't be cleared this way: the One note: our publishing account couldn't re-request your review through GitHub (it's a fork contributor without push access to the base repo), so please re-review at your convenience. |
|
@promptless-for-oss please rebase to 8.0 branch. |
1 similar comment
|
@promptless-for-oss please rebase to 8.0 branch. |
|
In reply to this discussion Thanks @adiati98 — on it. We're rebasing this branch onto 8.0 and will confirm here once it's done. |
|
In reply to this discussion Thanks @adiati98 — on it. We're rebasing this branch onto 8.0 and will confirm here once it's done. |
|
In reply to this discussion Done, @adiati98 — this PR now targets the 8.0 branch as requested. No prose changed: the reviewed content is byte-identical (one file, One note on method: our fork's publishing account can't force-push a rewritten branch history, so we performed the rebase by moving the PR's base branch from |
|
In reply to this discussion Done, @adiati98 — this PR now targets the 8.0 branch as requested. No prose changed: the reviewed content is byte-identical (one file, One note on method: our fork's publishing account can't force-push a rewritten branch history, so we performed the rebase by moving the PR's base branch from |
Open in Promptless
Mautic 8 (mautic/mautic PR #17116) removed the
ServicePasscompiler pass and theservices > menusarray in a bundle'sConfig/config.php. A Plugin that registered its own top-level Menu must now declare two services explicitly inConfig/services.php: aKnp\Menu\MenuItemtaggedknp_menu.menu, and aMautic\CoreBundle\Menu\MenuRenderertaggedknp_menu.renderer, paired by a matchingaliastag argument.This adds a "Registering a custom Menu" section to
docs/plugins/config.rstdocumenting this previously-undocumented extension point and its migration path — a before (config.php) / after (services.php) example, the multi-menu loop form, and a note that the menu builder must be referenced by class (Mautic\CoreBundle\Menu\MenuBuilder::class) because themautic.menu.builderstring alias was removed. A forward cross-reference from the "Available menus" list points readers to the new section.Trigger Events