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

Resend invoice from Admin is not working #153

Open
antonioperic opened this issue Aug 10, 2019 · 1 comment
Open

Resend invoice from Admin is not working #153

antonioperic opened this issue Aug 10, 2019 · 1 comment

Comments

@antonioperic
Copy link

Resend invoice is not working, the reason is because RedirectResponse is used, so event which should fire sending email is never executed.

@antonioperic
Copy link
Author

adding event dispatcher to action, and adding this line before return RedirectResponse will fix the issue. I don't know is there any more elegant solution

$this->eventDispatcher->addListener('kernel.terminate', function(){});

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

No branches or pull requests

1 participant