Skip to content

Add Operation defaults trait #984

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

Merged
merged 2 commits into from
Apr 9, 2025
Merged

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Feb 20, 2025

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

@loic425 loic425 force-pushed the operation_defaults_trait branch from 7c915c4 to 92ecfbd Compare February 20, 2025 07:21
@loic425 loic425 self-assigned this Feb 21, 2025
}

if (null === $operation->getTwigContextFactory()) {
$operation = $operation->withTwigContextFactory('sylius.twig.context.factory.default');
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to current PR, but why metadata factory is aware of the service ID? Should be handled via tagging/configuration/interfaces instead.

Comment on lines +24 to +26
/**
* @internal
*/
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/**
* @internal
*/
/** @internal */

@GSadee GSadee added the DX Issues and PRs aimed at improving Developer eXperience. label Apr 9, 2025
@GSadee GSadee merged commit bd58080 into Sylius:1.13 Apr 9, 2025
13 checks passed
@GSadee
Copy link
Member

GSadee commented Apr 9, 2025

Thank you Loic! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants