Skip to content
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

refactor(metadata): provide a trait in addition to the attribute #6558

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Aug 30, 2024

Backport of 9c46162

To add a few informations:

  • this provides an IsApiResource trait that can be used in place of the #[ApiResource] attribute
  • this also enables #[ApiProperty(property: 'foo')] on a class

@soyuka soyuka force-pushed the refactor/metadata-trait branch 3 times, most recently from 92186ea to 640aaa7 Compare August 30, 2024 08:28
@soyuka soyuka force-pushed the refactor/metadata-trait branch from 640aaa7 to f7c5162 Compare August 30, 2024 08:46
@soyuka soyuka merged commit 4c29bf8 into api-platform:3.4 Aug 30, 2024
78 checks passed
@soyuka soyuka deleted the refactor/metadata-trait branch August 30, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants