-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Consider SerializedPath in debug command output #52730
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
[Serializer] Consider SerializedPath in debug command output #52730
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I like it
if ($serializedName = $attributeMetadata->getSerializedName()) { | ||
$data[$attributeMetadata->getName()]['serializedName'] = $serializedName; | ||
} | ||
|
||
if ($serializedPath = $attributeMetadata->getSerializedPath()) { | ||
$data[$attributeMetadata->getName()]['serializedPath'] = (string) $serializedPath; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It outputs information of either SerializedName
or SerializedPath
, because both cannot be used in combination for the same property.
37ca037
to
1795e99
Compare
Thank you @jschaedl. |
dfbeb1d
to
24cdc43
Compare
…ding `serializedPath` (jschaedl) This PR was squashed before being merged into the 7.1 branch. Discussion ---------- Improve `debug:serializer` command documentation by adding `serializedPath` symfony/symfony#52730 Commits ------- 2c88dc8 Improve `debug:serializer` command documentation by adding `serializedPath`
The
debug:serializer
command does not showSerializedPath
information and I figured it might makes sense to add it.Corresponding symfony-docs pr symfony/symfony-docs#19184