Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite using Symfony token hooks and TokenProcessor #22

Closed
wants to merge 1 commit into from

Conversation

MegaphoneJon
Copy link
Contributor

Welp - someone had to do it eventually, right?

This is a rewrite of reltoken to use the newer Symfony token events, and use TokenProcessor to render tokens.

I added Flexmailer as a dependency because CiviMail without Flexmailer won't use the new Symfony events.

This is meant to be a rewrite following the original logic as closely as possible, and should have comparable performance. Now that we're using TokenProcessor I think we can render all tokens for a given related contact with a single TokenProcessor, which should yield a modest speed boost.

@twomice
Copy link
Owner

twomice commented Jun 28, 2022

Wow, thanks @MegaphoneJon I've got this scheduled for review (and hopefully merging) on Monday.

@twomice
Copy link
Owner

twomice commented Jul 11, 2022

Merged manually (with some changes) in cf2e2c1 and b788e45 . Tagged in new version v0.4.0. Thanks @MegaphoneJon !

@twomice twomice closed this Jul 11, 2022
@destrieux destrieux mentioned this pull request Feb 18, 2024
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.

2 participants