Skip to content

Commit 0d63c4f

Browse files
author
Holger Lösken
committed
Remove jms serializer
1 parent 82d8ba1 commit 0d63c4f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"require-dev": {
3030
"doctrine/doctrine-bundle": "^2.3",
3131
"friendsofphp/php-cs-fixer": "^3.0",
32-
"jms/serializer-bundle": "^3.0",
3332
"nyholm/psr7": "^1.3",
3433
"phpunit/phpunit": "^9.5",
3534
"symfony/doctrine-bridge": "^4.0 || ^5.0",

src/SearchableEntity.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace MeiliSearch\Bundle;
66

77
use Doctrine\Persistence\Mapping\ClassMetadata;
8-
use JMS\Serializer\ArrayTransformerInterface;
8+
use MeiliSearch\Bundle\Exception\UnknownNormalizerException;
99
use Symfony\Component\Config\Definition\Exception\Exception;
1010
use Symfony\Component\Serializer\Exception\ExceptionInterface;
1111
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
@@ -70,8 +70,6 @@ public function getSearchableArray(): array
7070

7171
if ($this->normalizer instanceof NormalizerInterface) {
7272
return $this->normalizer->normalize($this->entity, Searchable::NORMALIZATION_FORMAT, $context);
73-
} elseif ($this->normalizer instanceof ArrayTransformerInterface) {
74-
return $this->normalizer->toArray($this->entity);
7573
}
7674

7775
return [];

0 commit comments

Comments
 (0)