148148use ApiPlatform \State \Pagination \Pagination ;
149149use ApiPlatform \State \Pagination \PaginationOptions ;
150150use ApiPlatform \State \Processor \AddLinkHeaderProcessor ;
151- use ApiPlatform \State \Processor \LinkedDataPlatformProcessor ;
152151use ApiPlatform \State \Processor \RespondProcessor ;
153152use ApiPlatform \State \Processor \SerializeProcessor ;
154153use ApiPlatform \State \Processor \WriteProcessor ;
@@ -405,7 +404,13 @@ public function register(): void
405404 $ this ->app ->bind (ProviderInterface::class, ContentNegotiationProvider::class);
406405
407406 $ this ->app ->singleton (RespondProcessor::class, function (Application $ app ) {
408- $ decorated = new RespondProcessor ();
407+ $ decorated = new RespondProcessor (
408+ $ app ->make (IriConverterInterface::class),
409+ $ app ->make (ResourceClassResolverInterface::class),
410+ $ app ->make (OperationMetadataFactoryInterface::class),
411+ $ app ->make (ResourceMetadataCollectionFactoryInterface::class)
412+ );
413+
409414 if (class_exists (AddHeadersProcessor::class)) {
410415 /** @var ConfigRepository */
411416 $ config = $ app ['config ' ]->get ('api-platform.http_cache ' ) ?? [];
@@ -422,13 +427,7 @@ public function register(): void
422427 );
423428 }
424429
425- $ decorated = new AddLinkHeaderProcessor ($ decorated , new HttpHeaderSerializer ());
426-
427- return new LinkedDataPlatformProcessor (
428- $ decorated ,
429- $ app ->make (ResourceClassResolverInterface::class),
430- $ app ->make (ResourceMetadataCollectionFactoryInterface::class)
431- );
430+ return new AddLinkHeaderProcessor ($ decorated , new HttpHeaderSerializer ());
432431 });
433432
434433 $ this ->app ->singleton (SerializeProcessor::class, function (Application $ app ) {
0 commit comments