Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use OptionsResolver in event listener #351

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

Merged
merged 1 commit into from
Feb 6, 2017
Merged

Use OptionsResolver in event listener #351

merged 1 commit into from
Feb 6, 2017

Conversation

ddeboer
Copy link
Member

@ddeboer ddeboer commented Feb 5, 2017

Fix #290.

@ddeboer ddeboer added the wip/poc label Feb 5, 2017
@ddeboer
Copy link
Member Author

ddeboer commented Feb 5, 2017

This was the only place that seems to make sense for OptionsResolver. Or do we also want to refactor The UserContextListener constructor to accept an array of options instead of separate arguments?

@dbu
Copy link
Contributor

dbu commented Feb 6, 2017

looking at the number of optional parameters in that event listener, i think we should refactor it. looking at the code, i got confused by https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/src/SymfonyCache/UserContextListener.php which in a way looks very similar while being something very different. i wonder if we can/should do something about that. created #352

either way, this can be done as separate pull request, so i will merge this.

@dbu dbu merged commit eb354af into master Feb 6, 2017
@dbu dbu deleted the options-resolver branch February 6, 2017 08:51
@dbu dbu removed the wip/poc label Feb 6, 2017
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