Skip to content

Commit

Permalink
fix remove registerLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
a.kalin committed Dec 16, 2023
1 parent 2c15f4b commit 55f66e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ public static function deserialize(string $jsonString, string $type)
public static function getSerializer(): SerializerInterface
{
if (self::$serializer === null) {
if (!class_exists(AnnotationRegistry::class, false)) {
AnnotationRegistry::registerLoader('class_exists');
}

$serializerBuilder = SerializerBuilder::create();
$serializerBuilder->configureListeners(function (\JMS\Serializer\EventDispatcher\EventDispatcher $dispatcher
) {
Expand Down

0 comments on commit 55f66e8

Please sign in to comment.