Skip to content

docs: Port "Request" service page to 7.2#580

Open
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/docs-issue-379-request-7.2
Open

docs: Port "Request" service page to 7.2#580
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/docs-issue-379-request-7.2

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Ports the legacy Request guide into docs/plugin_services/request.rst, converting the Markdown to RST and updating it to inject Symfony's RequestStack and call getCurrentRequest() per Mautic 7.x. Content sourced from 7.1 porting issue #379 (parent #378), targeting the 7.2 base branch. The page is already wired into the plugin_services toctree.

Trigger Events


Tip: Point @Promptless at some of your docs debt and have it clean them up in the background 🧹

Ports the legacy Request guide into docs/plugin_services/request.rst,
converting Markdown to RST and using RequestStack per Mautic 7.x.
Resolves docs issue mautic#379 (7.2 base).
.. vale on No newline at end of file
.. vale on

Inject ``Symfony\Component\HttpFoundation\RequestStack`` and call ``getCurrentRequest()`` to access the current request:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ported the legacy _plugin_services_request.md code sample into request.rst, replacing the deprecated $this->get('request_stack') container lookup with constructor injection of Symfony\Component\HttpFoundation\RequestStack and getCurrentRequest() for Mautic 7.x.

Source: https://github.com/mautic/developer-documentation/blob/main/source/includes/_plugin_services_request.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant