-
-
Notifications
You must be signed in to change notification settings - Fork 423
[make:entity] fix compatibility with api-platform 3.0 #1199
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
Conversation
We need to push a fix for the test suite - a recipe change upstream broke things. But, to run tests locally, you can run |
972c899
to
77cb5c2
Compare
Thanks ! I have failures but not (normally) related to my dev. |
@yobrx - I've just merged in a few fixes to our CI. Doing a rebase against |
77cb5c2
to
93e2f86
Compare
It's green, except one test on 6.2.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 6.2 failure looks weird and probably a real failure - but certainly unrelated to this PR 👍
src/Maker/MakeEntity.php
Outdated
ApiResource::class, | ||
'api' | ||
); | ||
if (class_exists(LegacyApiResource::class)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would test for ApiResource
first because in 2.7 both classes exist, and we prefer using the non-deprecated attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Kévin, I fixed that.
… - Priority to the new version of Api Platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Yoann!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thank you @yobrx
I fixed #1198, but I don't know how launch tests suites easily, I don't have found documentation for that.