Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[OptionResolver] Document the OptionConfigurator #12426

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 19, 2020

Conversation

lmillucci
Copy link
Contributor

Add define() method to OptionResolver to enhance readability of option configuration. See symfony/symfony#33848

@OskarStark OskarStark added OptionsResolver Waiting Code Merge Docs for features pending to be merged labels Oct 5, 2019
@OskarStark OskarStark added this to the 4.4 milestone Oct 5, 2019
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Feb 6, 2020
…define options with fluent interface (lmillucci, yceruto)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[OptionsResolver] Add new OptionConfigurator class to define options with fluent interface

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #33735
| License       | MIT
| Doc PR        |  symfony/symfony-docs#12426

- [x] submit changes to the documentation

This PR adds OptionConfigurator to the OptionsResolver

Commits
-------

1ff5640 [OptionsResolver] Add new OptionConfigurator class to define options with fluent interface
components/options_resolver.rst Outdated Show resolved Hide resolved
@nicolas-grekas nicolas-grekas modified the milestones: 4.4, 5.1 Feb 6, 2020
components/options_resolver.rst Outdated Show resolved Hide resolved
@OskarStark OskarStark removed the Waiting Code Merge Docs for features pending to be merged label Feb 7, 2020
@wouterj wouterj changed the title [WCM][OptionResolver] document OptionConfigurator (fix #33848) [OptionResolver] document OptionConfigurator (fix #33848) Feb 9, 2020
Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Hi @lmillucci!

This is a great new syntax! Is there any drawback to using this new signature? I'm asking because if there is no drawback (performance wise or the like), we should imho use this new signature everywhere in this document. A superior syntax should be preferred over the old setters :)

If you agree, but don't have the time/motivation/whatever to do it, please leave a comment and I'll take care for it while merging this PR.

Thanks!

@lmillucci
Copy link
Contributor Author

lmillucci commented Feb 9, 2020 via email

@yceruto
Copy link
Member

yceruto commented Feb 11, 2020

Meanwhile, a new info() method was added to this new configurator. It would be nice if we could document it right here :)

@yceruto
Copy link
Member

yceruto commented Feb 11, 2020

this is the link #13090

@OskarStark OskarStark changed the title [OptionResolver] document OptionConfigurator (fix #33848) [OptionResolver] Document the OptionConfigurator Feb 19, 2020
@OskarStark OskarStark force-pushed the fix_33735_option_resolver branch from 658a0f5 to 921c73f Compare February 19, 2020 07:14
@OskarStark
Copy link
Contributor

Thanks for your work on this new feature!

OskarStark added a commit that referenced this pull request Feb 19, 2020
…lucci)

This PR was squashed before being merged into the master branch.

Discussion
----------

[OptionResolver] Document the OptionConfigurator

Add `define()` method to OptionResolver to enhance readability of option configuration. See  symfony/symfony#33848

Commits
-------

921c73f [OptionResolver] Document the OptionConfigurator
@OskarStark OskarStark merged commit 921c73f into symfony:master Feb 19, 2020
OskarStark added a commit that referenced this pull request Feb 19, 2020
@OskarStark
Copy link
Contributor

@yceruto to not get this PR rotten, I merged the current state 👍

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.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.