File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 29
29
"require-dev" : {
30
30
"doctrine/doctrine-bundle" : " ^2.3" ,
31
31
"friendsofphp/php-cs-fixer" : " ^3.0" ,
32
- "jms/serializer-bundle" : " ^3.0" ,
33
32
"nyholm/psr7" : " ^1.3" ,
34
33
"phpunit/phpunit" : " ^9.5" ,
35
34
"symfony/doctrine-bridge" : " ^4.0 || ^5.0" ,
Original file line number Diff line number Diff line change 5
5
namespace MeiliSearch \Bundle ;
6
6
7
7
use Doctrine \Persistence \Mapping \ClassMetadata ;
8
- use JMS \ Serializer \ ArrayTransformerInterface ;
8
+ use MeiliSearch \ Bundle \ Exception \ UnknownNormalizerException ;
9
9
use Symfony \Component \Config \Definition \Exception \Exception ;
10
10
use Symfony \Component \Serializer \Exception \ExceptionInterface ;
11
11
use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
@@ -70,8 +70,6 @@ public function getSearchableArray(): array
70
70
71
71
if ($ this ->normalizer instanceof NormalizerInterface) {
72
72
return $ this ->normalizer ->normalize ($ this ->entity , Searchable::NORMALIZATION_FORMAT , $ context );
73
- } elseif ($ this ->normalizer instanceof ArrayTransformerInterface) {
74
- return $ this ->normalizer ->toArray ($ this ->entity );
75
73
}
76
74
77
75
return [];
You can’t perform that action at this time.
0 commit comments