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

[Docs] Switch to embedded syntax for Resource operations #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Mar 6, 2025

On the beginning of that implementation, I preferred the previous syntax but after two years of new operations usage, I prefer that embedded syntax and I think the other one should be removed at some point to simplify the code maintenance.

We already use that syntax on the Cookbook.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@loic425 loic425 added the documentation Improvements or additions to documentation label Mar 6, 2025
@@ -152,16 +160,17 @@ use Sylius\Resource\Metadata\Update;
use Sylius\Resource\Model\ResourceInterface;

#[AsResource(
alias: 'app.board_game',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the alias thing, cause it's not useful here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant