Dziamid
Dziamid

Reputation: 11579

Symfony: on response ready event

In my project, I've implemented custom i18n class that collects all untranslated strings during the page load. Now, I would like to save them to the message source after the response has been built (hence all strings are collected). What is the right event to hook into?

Upvotes: 0

Views: 117

Answers (1)

Gerry
Gerry

Reputation: 6012

The "response.filter_content" event gets fired right before sending the response to the browser. Hope that helps.

Upvotes: 1

Related Questions