8000 [Serializer] Change visibility of getNormalizer and getDenormalizer by welcoMattic · Pull Request #24206 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Serializer] Change visibility of getNormalizer and getDenormalizer #24206

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
EEE1
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Symfony/Component/Serializer/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function supportsDenormalization($data, $type, $format = null/*, array $c
*
* @return NormalizerInterface|null
*/
private function getNormalizer($data, $format, array $context)
protected function getNormalizer($data, $format, array $context)
{
foreach ($this->normalizers as $normalizer) {
if ($normalizer instanceof NormalizerInterface && $normalizer->supportsNormalization($data, $format, $context)) {
Expand All @@ -244,7 +244,7 @@ private function getNormalizer($data, $format, array $context)
*
* @return DenormalizerInterface|null
*/
private function getDenormalizer($data, $class, $format, array $context)
protected function getDenormalizer($data, $class, $format, array $context)
{
foreach ($this->normalizers as $normalizer) {
if ($normalizer instanceof DenormalizerInterface && $normalizer->supportsDenormalization($data, $class, $format, $context)) {
Expand Down
0