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

[Serializer] improve documentation of default_context for the serializer #17305

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
Oct 3, 2022

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Sep 29, 2022

additional info for #17310

fix #17306

the code example will only work once symfony/symfony#47243 is merged

@dbu
Copy link
Contributor Author

dbu commented Sep 30, 2022

build should get green when retrying, as the code is now merged to 6.2.

reference/configuration/framework.rst Show resolved Hide resolved
reference/configuration/framework.rst Outdated Show resolved Hide resolved
reference/configuration/framework.rst Outdated Show resolved Hide resolved
serializer.rst Show resolved Hide resolved
@OskarStark
Copy link
Contributor

Please also adjust the title of the PR after rebasing, thanks

@OskarStark OskarStark self-requested a review September 30, 2022 18:10
@dbu dbu force-pushed the serializer-context branch from 199be2e to d0743d8 Compare October 1, 2022 08:09
@dbu dbu changed the title document default context for the serializer improve documentation of default_context for the serializer Oct 1, 2022
@dbu
Copy link
Contributor Author

dbu commented Oct 1, 2022

rebased, cleaned up and adjusted the title.

regarding the linter failure: looks like thats broken in all 6.x versions: https://github.com/symfony/symfony-docs/actions/runs/3160768594/jobs/5145596113

can you fix that in 6.0 and then merge it up to 6.1 and 6.2? or we just merge with the known error...


return static function (FrameworkConfig $framework) {
$framework->serializer()
->defaultContext([
AbstractObjectNormalizer::ENABLE_MAX_DEPTH => true
AbstractObjectNormalizer::ENABLE_MAX_DEPTH => true,
YamlEncoder::YAML_INDENTATION => 2,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is a build failure about this, but i don't understand it.

Copy link
Contributor

Choose a reason for hiding this comment

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

any idea @Nyholm

reference/configuration/framework.rst Outdated Show resolved Hide resolved
@dbu dbu force-pushed the serializer-context branch from d0743d8 to 852aa11 Compare October 1, 2022 08:44
@javiereguiluz javiereguiluz merged commit cd5c197 into symfony:6.2 Oct 3, 2022
@carsonbot carsonbot changed the title improve documentation of default_context for the serializer [Serializer] improve documentation of default_context for the serializer Oct 3, 2022
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.

Add context option to configure the indentation of nested nodes for YamlEncoder
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.