-
Notifications
You must be signed in to change notification settings - Fork 38
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
Sylius 2.0 upgrade #57
Sylius 2.0 upgrade #57
Conversation
4ec348a
to
87c52cd
Compare
704095d
to
95d1abd
Compare
f3baf2c
to
de59090
Compare
de59090
to
cbf730f
Compare
cbf730f
to
182f4ae
Compare
795cd6f
to
6a7f0e4
Compare
6713b09
to
b9b368c
Compare
b9b368c
to
c9634fc
Compare
@@ -17,5 +16,10 @@ parameters: | |||
|
|||
ignoreErrors: | |||
- '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./' | |||
- '#missingType.iterableValue#' | |||
- '#missingType.generics#' | |||
- '/Parameter #1 \$productRepository of method BitBag\\SyliusProductBundlePlugin\\Component\\Product\\AddToCartFormComponent::initializeProduct\(\) expects Sylius\\Component\\Core\\Repository\\ProductRepositoryInterface<Sylius\\Component\\Core\\Model\\ProductInterface>, Sylius\\Component\\Core\\Repository\\ProductRepositoryInterface<BitBag\\SyliusProductBundlePlugin\\Entity\\ProductInterface> given\./' |
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.
Do we really need so many errors ignored? Can't we handle them?
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 handled some of them.
#[AsLiveComponent] | ||
final class AddToCartFormComponent extends BaseAddToCartFormComponent | ||
{ | ||
//TODO there should be decoration instead of extension ? To discuss |
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.
Should this todo be handled?
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.
From my point of view extension is the correct way. Maybe you have different opinion?
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 do not have any preference, just wanted to highlight the comment
use Webmozart\Assert\Assert; | ||
|
||
#[AsMessageHandler] | ||
final class AddProductBundleToCartHandler |
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 do not get, why this is written from scratch. Was this feature missing?
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.
It is some bug in git for me. That file existed from 2019 and I just edited that.
"hydra:member": [ | ||
{ | ||
"@id": "\/api\/v2\/admin\/product-bundles\/@integer@", | ||
"@id": "\/api\/v2/admin\/product-bundles\/@integer@", |
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.
Why only one backslash has been removed?
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.
Missclick
"inStock": true | ||
}, | ||
"productName": "Whiskey Double Pack", | ||
"variant": "/api/v2/shop/product-variants/@string@", |
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.
So the "productBundleItems" is "hidden" here, am I right?
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.
Yes you are right.
@@ -1 +1 @@ | |||
import 'sylius/bundle/AdminBundle/Resources/private/entry'; | |||
import 'sylius/bundle/AdminBundle/Resources/assets/entrypoint'; |
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.
Is this any standard?
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.
Thats how sylius 2.0 need to do that
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.
@JanPalen please remove the TODO comment, and we can go with testing on branch
01b603b
to
ed031a3
Compare
Upgrade plugin to Sylius 2.0.