* 1.12:
[CS][DX] Refactor
Resolve phpstan issues
Resolve psalm issues
Fix Spec tests
Update src/Sylius/Component/Product/Resolver/DefaultProductVariantResolver.php
Using findBy to avoid PSALM error
Add Scenario to test default variant
Add orderBy position and id to get the same sets used on ->getEnabledVariants()
mention about service new argument
Add deprecation notice mention by @diimpp
This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13
| Bug fix? | no
| New feature? | yes |
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT |
<!--
- Bug fixes must be submitted against the 1.12 branch
- Features and deprecations must be submitted against the 1.13 branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
Commits
-------
[API][Admin] Extend GET endpoints for getting product variants
[API][Admin] Extend POST endpoint for creating a product variant
[API][Admin] Extend PUT endpoint for updating the product variant
[API][Admin] Add DELETE endpoint for product variant resource
[Behat][API] Cover scenarios for adding a product variant
[Behat][API] Cover scenarios for browsing product variants
[Behat][API] Cover scenarios for deleting a product variant
[API][Behat] Mark scenarios for generating product variants as no-api
[API][Behat] Cover scenarios for editing and validating product variants
[API] Validate option values on product variants
Fix CS and static analysis
[API] Fix contract tests after changing fixtures for product variants
[Behat][API] Extract some steps to separate contexts to resolve duplications
[Behat][API] Change setting code on option value to resolve problem with case sensitive PostgreSQL