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

Skip to content

[Serializer] Allow to access to the context and various other infos in callbacks and max depth handler #27017

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
Apr 25, 2018

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Apr 23, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR symfony/symfony-docs#10318

Allows to access to the context, format, parent object and attribute name in max depth handlers and callbacks.

ping @meyerbaptiste

@fabpot
Copy link
Member

fabpot commented Apr 25, 2018

Thank you @dunglas.

@fabpot fabpot merged commit 0e5f740 into symfony:master Apr 25, 2018
fabpot added a commit that referenced this pull request Apr 25, 2018
…s other infos in callbacks and max depth handler (dunglas)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[Serializer] Allow to access to the context and various other infos in callbacks and max depth handler

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes<!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | todo

Allows to access to the context, format, parent object and attribute name in max depth handlers and callbacks.

ping @meyerbaptiste

Commits
-------

0e5f740 [Serializer] Allow to access to the context and various other infos in callbacks and max depth handler
@stof
Copy link
Member

stof commented Apr 25, 2018

I suggest updating the phpdoc of setMaxDepthHandler to describe the argument beign received by the callable.

@fabpot fabpot mentioned this pull request May 7, 2018
nicolas-grekas added a commit that referenced this pull request Jul 7, 2018
… in circular ref handler (dunglas)

This PR was merged into the 4.2-dev branch.

Discussion
----------

[Serializer] Allow to access to the format and context in circular ref handler

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | todo

Similar to #27017 but for circular reference handlers.

ping @meyerbaptiste

Commits
-------

99f829e [Serializer] Allow to access to the format and context in circular ref handler
fabpot added a commit that referenced this pull request Sep 4, 2018
…rters (dunglas)

This PR was squashed before being merged into the 4.2-dev branch (closes #27021).

Discussion
----------

[Serializer] Allow to access extra infos in name converters

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes<!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | todo

Similar to #27017 and #27020 but for name converters.

ping @meyerbaptiste

Commits
-------

57fe017 [Serializer] Allow to access extra infos in name converters
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Sep 11, 2018
…other infos in callbacks and max depth handler (dunglas, javiereguiluz)

This PR was merged into the master branch.

Discussion
----------

[Serializer] Allow to access to the context and various other infos in callbacks and max depth handler

symfony/symfony#27020
symfony/symfony#27017

Commits
-------

672b374 Minor reword
7c3e620 Fix, and document setCircularReferenceHandler's new parameters
a4dad43 [Serializer] Allow to access to the context and various other infos in callbacks and max depth handler
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
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.

5 participants