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

Add state resetting at the end of the request #31

Merged
merged 1 commit into from
Aug 30, 2018
Merged

Conversation

dnna
Copy link
Contributor

@dnna dnna commented Aug 25, 2018

When using this plugin with https://github.com/php-pm/php-pm the events are added multiple times because they are saved internally and carried over to the next request. This PR fixes this by using Symfony's kernel.reset tag that is designed for this purpose.

@stefandoorn
Copy link
Collaborator

@dnna Got some docs about that kernel.reset event? Can't find anything, but would like to read about it :-)

@dnna
Copy link
Contributor Author

dnna commented Aug 25, 2018

I don't think its well documented but you can read about it in symfony/symfony#23984 and symfony/symfony#24155 :)

@stefandoorn
Copy link
Collaborator

Looks good to me :-)

@xyNNN
Copy link
Owner

xyNNN commented Aug 30, 2018

I will give you asap feedback, merge it and create a new release ;)

@xyNNN
Copy link
Owner

xyNNN commented Aug 30, 2018

Looks also good to me, thank you for your contribution @dnna and @stefandoorn for your review 👍

@xyNNN xyNNN merged commit 97fda55 into xyNNN:master Aug 30, 2018
@dnna dnna deleted the reset branch August 30, 2018 08:29
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.

3 participants