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

Refactor UserContextListener to take options array #356

Merged
merged 1 commit into from
Feb 13, 2017

Conversation

ddeboer
Copy link
Member

@ddeboer ddeboer commented Feb 10, 2017

Fix #352.

@ddeboer ddeboer force-pushed the user-context-listener-options-resolver branch from d27c6e8 to 184169c Compare February 10, 2017 21:29
'user_identifier_headers' => $config['user_identifier_headers'],
'user_hash_header' => $config['user_hash_header'],
'ttl' => $config['hash_cache_ttl'],
'add_vary_on_hash' => $config['always_vary_on_context_hash'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just notice that this means we never actually use the defaults defined in the options, but the ones from the Configuration class. we could change the configuration to NULL, and built the options array to only hold those values that are not null... but this is independent of this refactoring.

@dbu dbu merged commit bca9a26 into master Feb 13, 2017
@dbu dbu deleted the user-context-listener-options-resolver branch February 13, 2017 07:57
@dbu dbu removed the wip/poc label Feb 13, 2017
@dbu
Copy link
Contributor

dbu commented Feb 13, 2017

thank you!

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