-
-
Notifications
You must be signed in to change notification settings - Fork 895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApiPlatform\Metadata\Operations is marked as @internal but it probably shouldn't #5084
Labels
Comments
👍 this should be patched in the BC layer as well (2.7) |
norival
added a commit
to norival/api-platform-core
that referenced
this issue
Oct 24, 2022
norival
added a commit
to norival/api-platform-core
that referenced
this issue
Oct 24, 2022
dunglas
pushed a commit
that referenced
this issue
Oct 24, 2022
soyuka
added a commit
that referenced
this issue
Nov 4, 2022
* fix: update yaml extractor test file coding standard (#5068) * fix(graphql): add clearer error message when TwigBundle is disabled but graphQL clients are enabled (#5064) * fix(metadata): add class key in payload argument resolver (#5067) * fix: add class key in payload argument resolver * add null if everything else goes wrong * fix: upgrade command remove ApiSubresource attribute (#5049) Fixes #5038 * fix(doctrine): use abitrary index instead of value (#5079) * fix: uri template should respect rfc 6570 (#5080) * fix: remove @internal annotation for Operations (#5089) See #5084 * fix(metadata): define a name on a single operation (#5090) fixes #5082 * fix(metadata): deprecate when user decorates in legacy mode (#5091) fixes #5078 * fix(graphql): use right nested operation (#5102) * Revert "fix(graphql): use right nested operation (#5102)" (#5111) This reverts commit 44337dd. * fix(graphql): always allow to query nested resources (#5112) * fix(graphql): always allow to query nested resources * review Co-authored-by: Alan Poulain <[email protected]> * chore: php-cs-fixer update * fix: only alias if exists for opcache preload Fixes api-platform/api-platform#2284 (#5110) Co-authored-by: Liviu Mirea <[email protected]> * chore: php-cs-fixer update (#5118) * chore: php-cs-fixer update * chore: php-cs-fixer update * fix(metadata): upgrade script keep operation name (#5109) origin: #5105 Co-authored-by: WilliamPeralta <[email protected]> * chore: v2.7.3 changelog * chore: v3.0.3 changelog Co-authored-by: helyakin <[email protected]> Co-authored-by: ArnoudThibaut <[email protected]> Co-authored-by: davy-beauzil <[email protected]> Co-authored-by: Baptiste Leduc <[email protected]> Co-authored-by: Xavier Laviron <[email protected]> Co-authored-by: Alan Poulain <[email protected]> Co-authored-by: Liviu Cristian Mirea-Ghiban <[email protected]> Co-authored-by: Liviu Mirea <[email protected]> Co-authored-by: WilliamPeralta <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
API Platform version(s) affected: 3.0.2
Description
I'm migrating from v2.6.5 to v3.0.2. In v2 I used
AutoGroupResourceMetadataFactory
proposed in this Symfony Cast with my minor modifications.AutoGroupResourceMetadataFactory.php
ResourceMetadataFactoryInterface
was removed in v3. So, I rewrote the class this way (not complete yet, but works for me):AutoGroupResourceMetadataCollectionFactory.php
For this to work, I had to use
ApiPlatform\Metadata\Operations
, but it is marked as@internal
. I still can use it, but my IDE crosses it out. And as it's marked as internal, there seems to be no guarantee on the interface stability.Also, while
ApiPlatform\Metadata\Operations
is marked as@internal
,ApiPlatform\Metadata\Operation
is not. Which seems to be inconsistent.Finally,
ApiPlatform\Metadata\ApiResource::getOperations(...)
returns?Operations
andApiPlatform\Metadata\ApiResource::withOperations(...)
acceptsOperations
.ApiResource
is not@internal
and the mentioned methods are public and are not marked as@internal
.Summarizing the facts, I believe
ApiPlatform\Metadata\Operations
should not be considered@internal
.What do you think?
Possible Solution
Remove
@internal
fromApiPlatform\Metadata\Operations
.The text was updated successfully, but these errors were encountered: