-
-
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
Make ApiResource shorter #5076
Comments
Indeed, the code should be |
yobrx
pushed a commit
to yobrx/api-platform-core
that referenced
this issue
Nov 9, 2022
yobrx
pushed a commit
to yobrx/api-platform-core
that referenced
this issue
Nov 9, 2022
yobrx
pushed a commit
to yobrx/api-platform-core
that referenced
this issue
Nov 9, 2022
yobrx
pushed a commit
to yobrx/api-platform-core
that referenced
this issue
Nov 9, 2022
yobrx
pushed a commit
to yobrx/api-platform-core
that referenced
this issue
Nov 9, 2022
yobrx
pushed a commit
to yobrx/api-platform-core
that referenced
this issue
Nov 10, 2022
soyuka
added a commit
that referenced
this issue
Nov 10, 2022
…5175) Co-authored-by: Antoine Bluchet <[email protected]>
It's fixed on 3.0.4 last upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometime we need to write a long code like :
It is too long for person to read.
Can we just create a new Attribute class,
class RestfulApi extends ApiResource
, and move some normal logic into consturctor?Then we just add code like this:
#[RestfulApi( routePrefix: '/live-chat', )]
Related code:
core/src/Metadata/Resource/Factory/AttributesResourceNameCollectionFactory.php
Line 60 in 1a3ae34
The text was updated successfully, but these errors were encountered: