Skip to content

[OptionsResolver] Trigger a deprecated option message closure from other options #38293

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

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

Ref #37837

The idea is that some other options might need to trigger the execution of a deprecated option message \Closure. See the referenced PR for an example.

When a deprecated option logic involves other values, instead of having to deprecate all those options one by one to account for all the possible scenarios, we would only need to deprecate one and declare its "closure trigger options".

@fancyweb fancyweb force-pushed the options-resolver-deprecated-closure-trigger-options branch from c5c4227 to 2a69820 Compare September 24, 2020 16:35
@nicolas-grekas nicolas-grekas added this to the next milestone Sep 25, 2020
@nicolas-grekas
Copy link
Member

Closing as discussed on Slack: this is too much of an edge case and there is already a way to make this work, with some logic in the closure.

@fancyweb fancyweb deleted the options-resolver-deprecated-closure-trigger-options branch September 25, 2020 15:48
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants