This repository was archived by the owner on Sep 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
use Symfony \Component \Form \Extension \HttpFoundation \HttpFoundationExtension ;
8
8
use Symfony \Component \Form \FormInterface ;
9
9
use Symfony \Component \Form \Forms ;
10
- use Symfony \Component \Serializer \Normalizer \DenormalizableInterface ;
10
+ use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
11
11
12
12
final class AirtableClient implements AirtableClientInterface
13
13
{
14
14
private AirtableTransportInterface $ airtableTransport ;
15
- private DenormalizableInterface $ denormalizable ;
15
+ private NormalizerInterface $ normalizer ;
16
16
17
17
public function __construct (
18
18
AirtableTransportInterface $ airtableTransport ,
19
- DenormalizableInterface $ denormalizable ,
19
+ NormalizerInterface $ normalizer
20
20
) {
21
21
$ this ->airtableTransport = $ airtableTransport ;
22
- $ this ->denormalizable = $ denormalizable ;
22
+ $ this ->normalizer = $ normalizer ;
23
23
}
24
24
25
25
/**
@@ -205,7 +205,7 @@ function (array $recordData) use ($dataClass): AirtableRecord {
205
205
private function createRecordFromResponse (?string $ dataClass , array $ recordData )
206
206
{
207
207
if (null !== $ dataClass ) {
208
- $ recordData ['fields ' ] = $ this ->denormalizable ->denormalize ($ recordData ['fields ' ], $ dataClass );
208
+ $ recordData ['fields ' ] = $ this ->normalizer ->denormalize ($ recordData ['fields ' ], $ dataClass );
209
209
210
210
return $ recordData ;
211
211
}
You can’t perform that action at this time.
0 commit comments