File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,8 @@ services:
305
305
306
306
' AppBundle\Serializer\BookContextBuilder ' :
307
307
decorates : ' api_platform.serializer.context_builder'
308
- arguments : [ '@app.serializer.builder.book.inner' ]
308
+ arguments : [ '@AppBundle\Serializer\BookContextBuilder.inner' ]
309
+ autoconfigure : false
309
310
` ` `
310
311
311
312
` ` ` php
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ services:
43
43
44
44
' AppBundle\Serializer\ApiNormalizer ' :
45
45
decorates : ' api_platform.jsonld.normalizer.item'
46
+ arguments : [ '@AppBundle\Serializer\ApiNormalizer.inner' ]
47
+ autoconfigure : false
46
48
` ` `
47
49
48
50
` ` ` php
@@ -53,13 +55,12 @@ services:
53
55
namespace AppBundle\Serializer;
54
56
55
57
use ApiPlatform\Core\Serializer\AbstractItemNormalizer;
56
- use ApiPlatform\Core\Serializer\ItemNormalizer;
57
58
use Symfony\Component\Console\Exception\InvalidArgumentException;
58
-
59
+ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
59
60
60
61
final class ApiNormalizer extends AbstractItemNormalizer
61
62
{
62
- public function __construct(ItemNormalizer $decorated)
63
+ public function __construct(NormalizerInterface $decorated)
63
64
{
64
65
$this->decorated = $decorated;
65
66
}
You can’t perform that action at this time.
0 commit comments