Newsletter in Footer Snippet

Hello. I want to implement newsletter in footer snippet. In footer snippet I added
{{ pimcore_action('subscribe', 'Newsletter', null, {}) }}
and when I dump $request in NewsletterController after submit i don’t receive any parameters. How can i fix this?

Well, this is a common issue with people starting off with Symfony. See, you can create a subRequest inside a main Request, and that’s exactly what you did here. Symfony handles these in a Request stack, and you’re trying to actually access parameters from the main request in your subRequest.

You’ll need to pass them to the pimcore_action as an array.