Skip to content

Commit da846c5

Browse files
committed
fix test 2
1 parent 201aa62 commit da846c5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Laravel/ApiPlatformProvider.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,15 @@ public function register(): void
391391

392392
// Parameter metadata factory with Laravel Eloquent support
393393
$this->app->extend(ResourceMetadataCollectionFactoryInterface::class, static function (ResourceMetadataCollectionFactoryInterface $inner, Application $app) {
394-
return new Metadata\Resource\Factory\ParameterResourceMetadataCollectionFactory($inner, $app->make(ModelMetadata::class), new \Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter());
394+
return new Metadata\Resource\Factory\ParameterResourceMetadataCollectionFactory(
395+
$app->make(PropertyNameCollectionFactoryInterface::class),
396+
$app->make(PropertyMetadataFactoryInterface::class),
397+
$inner,
398+
$app->make('filters'),
399+
$app->make(ResourceClassResolverInterface::class),
400+
new \Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter(),
401+
$app->make(LoggerInterface::class)
402+
);
395403
});
396404

397405
$this->app->singleton(OperationMetadataFactory::class, static function (Application $app) {

0 commit comments

Comments
 (0)