You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bootstrapping the Core Library not up to date #2133
If I understand well, the "minimal version of API Platform" seems outdated, many interfaces have changed, many classes are not located where they used to be.
I am trying to make it work, not knowing the code it is a bit complicated, could you update the doc ? Or, if so, tell me what I misunderstood ?
@tsaquet Yes, you're right, this documentation is out of date. We plan to update it as soon as possible, but if you'd like us to investigate the code to find out how it works internally, we can help you and update the documentation simultaneously.
Thank you for this quick answer. There are 65 problems at the file opening, here is what I found (or not) for each line.
In bold what I could not solve.
:146 \ApiPlatform\Exception\InvalidArgumentException -> \ApiPlatform\Metadata\Exception\InvalidArgumentException :147 \ApiPlatform\Exception\FilterValidationException -> Did not find a solution
:165 new AnnotationLoader() -> new AttributeLoader()
:180 changed import from use ApiPlatform\Operation\UnderscorePathSegmentNameGenerator; to use ApiPlatform\Metadata\Operation\UnderscorePathSegmentNameGenerator;
:183 changed import from use ApiPlatform\Api\ResourceClassResolver; to use ApiPlatform\Metadata\ResourceClassResolver;
:274 Validator -> ObjectProvider
:308 changed import from use ApiPlatform\Api\IdentifiersExtractor; to use ApiPlatform\Metadata\IdentifiersExtractor; :346 $this->container -> Did not find a solution
:353 changed import from use ApiPlatform\Action\PlaceholderAction; to use ApiPlatform\Symfony\Action\PlaceholderAction;
:398 added return type RouteCollection
:406 added return type void
:419 used MetadataUrlGeneratorInterface instead of ApiUrlGeneratorInterface
:437 from use ApiPlatform\Api\UriVariableTransformer\IntegerUriVariableTransformer; to use ApiPlatform\Metadata\UriVariableTransformer\IntegerUriVariableTransformer;
:438 from use ApiPlatform\Api\UriVariableTransformer\DateTimeUriVariableTransformer; to use ApiPlatform\Metadata\UriVariableTransformer\DateTimeUriVariableTransformer;
:447 from use ApiPlatform\Api\UriVariablesConverter; to use ApiPlatform\Metadata\UriVariablesConverter; :453 $iriConverter not expected type -> Did not find a solution
:454 $resourceClassResolver not expected type -> Did not find a solution
:474 HydraErrorNormalizer -> Did not find a solution
:477 HydraConstraintViolationListNormalizer signature not ok anymore -> Did not find a solution
:479 ErrorNormalizer -> Did not find a solution
:560 -> :568 -> Serializers & listeners -> Did not find a solution
:602 return type not expected -> Did not find a solution
:615 TypeFactory -> Tried SchemaFactory but not successful
:616 from use ApiPlatform\JsonSchema\SchemaFactory; to use ApiPlatform\JsonApi\JsonSchema\SchemaFactory; -> not enough
:622 EntrypointAction -> think I found a replacement but method signature has changed
:628 use ApiPlatform\Action\NotExposedAction; to use ApiPlatform\Symfony\Action\NotExposedAction;
Activity
vinceAmstoutz commentedon Jan 16, 2025
@tsaquet Yes, you're right, this documentation is out of date. We plan to update it as soon as possible, but if you'd like us to investigate the code to find out how it works internally, we can help you and update the documentation simultaneously.
tsaquet commentedon Jan 16, 2025
Thank you for this quick answer. There are 65 problems at the file opening, here is what I found (or not) for each line.
In bold what I could not solve.
:146 \ApiPlatform\Exception\InvalidArgumentException -> \ApiPlatform\Metadata\Exception\InvalidArgumentException
:147 \ApiPlatform\Exception\FilterValidationException -> Did not find a solution
:165 new AnnotationLoader() -> new AttributeLoader()
:180 changed import from use ApiPlatform\Operation\UnderscorePathSegmentNameGenerator; to use ApiPlatform\Metadata\Operation\UnderscorePathSegmentNameGenerator;
:183 changed import from use ApiPlatform\Api\ResourceClassResolver; to use ApiPlatform\Metadata\ResourceClassResolver;
:274 Validator -> ObjectProvider
:308 changed import from use ApiPlatform\Api\IdentifiersExtractor; to use ApiPlatform\Metadata\IdentifiersExtractor;
:346 $this->container -> Did not find a solution
:353 changed import from use ApiPlatform\Action\PlaceholderAction; to use ApiPlatform\Symfony\Action\PlaceholderAction;
:398 added return type RouteCollection
:406 added return type void
:419 used MetadataUrlGeneratorInterface instead of ApiUrlGeneratorInterface
:437 from use ApiPlatform\Api\UriVariableTransformer\IntegerUriVariableTransformer; to use ApiPlatform\Metadata\UriVariableTransformer\IntegerUriVariableTransformer;
:438 from use ApiPlatform\Api\UriVariableTransformer\DateTimeUriVariableTransformer; to use ApiPlatform\Metadata\UriVariableTransformer\DateTimeUriVariableTransformer;
:447 from use ApiPlatform\Api\UriVariablesConverter; to use ApiPlatform\Metadata\UriVariablesConverter;
:453 $iriConverter not expected type -> Did not find a solution
:454 $resourceClassResolver not expected type -> Did not find a solution
:474 HydraErrorNormalizer -> Did not find a solution
:477 HydraConstraintViolationListNormalizer signature not ok anymore -> Did not find a solution
:479 ErrorNormalizer -> Did not find a solution
:560 -> :568 -> Serializers & listeners -> Did not find a solution
:602 return type not expected -> Did not find a solution
:615 TypeFactory -> Tried SchemaFactory but not successful
:616 from use ApiPlatform\JsonSchema\SchemaFactory; to use ApiPlatform\JsonApi\JsonSchema\SchemaFactory; -> not enough
:622 EntrypointAction -> think I found a replacement but method signature has changed
:628 use ApiPlatform\Action\NotExposedAction; to use ApiPlatform\Symfony\Action\NotExposedAction;
tsaquet commentedon Jan 16, 2025
The file with the changes in the previous message.