Skip to content
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

Fixes for issue UnimplementedInterfaceMethod: Method getsupportedtypes is not defined #385

Open
wants to merge 4 commits into
base: 4.x
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Api/ApigeeX/Denormalizer/AppGroupMembershipDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,14 @@ public function supportsDenormalization($data, $type, $format = null)

return AppGroupMembership::class === $type || $type instanceof AppGroupMembership;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
AppGroupMembership::class => true,
];
}
}
10 changes: 10 additions & 0 deletions src/Api/Management/Query/StatsQueryNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,14 @@ public function supportsNormalization($data, $format = null)
{
return $data instanceof StatsQuery;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
StatsQuery::class => true,
];
}
}
10 changes: 10 additions & 0 deletions src/Serializer/EntitySerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,16 @@ public function supportsEncoding($format): bool
return $this->format === $format && $this->serializer->supportsEncoding($format);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
EntitySerializerInterface::class => true,
];
}

/**
* Allows subclasses to replace the default JSON encoder.
*
Expand Down