Skip to content

Commit 402220f

Browse files
committed
chore(laravel): remove duplicated ItemNormalizer definition
1 parent 5a2053f commit 402220f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Laravel/ApiPlatformProvider.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -527,22 +527,6 @@ public function register(): void
527527
);
528528
});
529529

530-
$this->app->singleton(ItemNormalizer::class, function (Application $app) use ($defaultContext) {
531-
return new ItemNormalizer(
532-
$app->make(PropertyNameCollectionFactoryInterface::class),
533-
$app->make(PropertyMetadataFactoryInterface::class),
534-
$app->make(IriConverterInterface::class),
535-
$app->make(ResourceClassResolverInterface::class),
536-
$app->make(PropertyAccessorInterface::class),
537-
$app->make(NameConverterInterface::class),
538-
$app->make(ClassMetadataFactoryInterface::class),
539-
$app->make(LoggerInterface::class),
540-
$app->make(ResourceMetadataCollectionFactoryInterface::class),
541-
$app->make(ResourceAccessCheckerInterface::class),
542-
$defaultContext
543-
);
544-
});
545-
546530
$this->app->singleton(Options::class, function (Application $app) use ($config) {
547531
return new Options(title: $config->get('api-platform.title') ?? '');
548532
});

0 commit comments

Comments
 (0)