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;
@tsaquet Tanks for the details. I won't be able to get into this in the next few weeks, but in the meantime, I invite you to look at the git diffs between versions 3 and 4 of API Platform and the upgrade guide to identify new symbols.
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.
vinceAmstoutz commentedon Jan 17, 2025
@tsaquet Tanks for the details. I won't be able to get into this in the next few weeks, but in the meantime, I invite you to look at the git diffs between versions 3 and 4 of API Platform and the upgrade guide to identify new symbols.
vinceAmstoutz commentedon Jan 17, 2025
If you're in a rush, don't hesitate to ask Les-Tilleuls.coop for an estimate, who is the company that created and maintain API Platform.
tsaquet commentedon Jan 17, 2025
We're in a bit of a hurry, but this is a volunteer open source project with no funds, so we're in no position to ask for an estimate :)
I will either make it work or postpone this part of the code refactoring :)
soyuka commentedon Feb 12, 2025
It's up to date in the
ApiPlatformLaravelProvider:Ddunglas commentedon Feb 12, 2025
If it's too hard to maintain, maybe should we just link the Laravel provider?
Better no docs than outdated docs 😅
soyuka commentedon Dec 5, 2025
I've added a note to the docs and alink to the provider, lets keep that open if someone wants it needs quite an update.