-
Notifications
You must be signed in to change notification settings - Fork 7
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
OP-558: Sylius 2 upgrade #71
base: main
Are you sure you want to change the base?
Conversation
exclude: | ||
- sylius: "~1.13.0" |
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.
exclude: | |
- sylius: "~1.13.0" |
exclude: | ||
- sylius: ^1.13 |
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.
exclude: | |
- sylius: ^1.13 |
remove all excludes
"doctrine/annotations": "^2.0.0" | ||
"php": "^8.2", | ||
"doctrine/annotations": "^2.0.0", | ||
"sylius-labs/polyfill-symfony-security": "^1.1", |
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.
"sylius-labs/polyfill-symfony-security": "^1.1", |
"doctrine/annotations": "^2.0.0", | ||
"sylius-labs/polyfill-symfony-security": "^1.1", | ||
"sylius/calendar": "^0.5.0", | ||
"sylius/grid-bundle": "^1.13.0-ALPHA.3", |
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.
"sylius/grid-bundle": "^1.13.0-ALPHA.3", | |
"sylius/grid-bundle": "^1.13.0", |
@@ -39,16 +39,16 @@ | |||
</service> | |||
|
|||
<service id="sylius.form.type.checkout_address" class="Sylius\Bundle\CoreBundle\Form\Type\Checkout\AddressType"> | |||
<argument type="service" id="sylius.address_comparator" /> |
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.
this service will probably be changed in sylius 2.0.0 to sylius.comparator.address
<tag | ||
name="sylius.live_component" | ||
key="sylius_admin:blacklisting_rule:form" | ||
template="@BitBagSyliusBlacklistPlugin/BlacklistingRule/Admin/form.html.twig" |
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.
next alpha will allow setting components templates in hooks rather then in service definitions
@@ -0,0 +1,53 @@ | |||
{% form_theme form '@BitBagSyliusBlacklistPlugin/Form/theme.html.twig' %} |
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 will suggest to change views
directory to templates
use Twig\Extension\AbstractExtension; | ||
use Twig\TwigFunction; | ||
|
||
final class AutomaticBlacklistingConfigurationLabelsExtension extends AbstractExtension |
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.
final class AutomaticBlacklistingConfigurationLabelsExtension extends AbstractExtension | |
final readonly class AutomaticBlacklistingConfigurationLabelsExtension extends AbstractExtension |
|
||
access_control: | ||
- { path: "%sylius.security.admin_regex%/_partial", role: PUBLIC_ACCESS, ips: [127.0.0.1, ::1] } | ||
- { path: "%sylius.security.admin_regex%/_partial", role: ROLE_NO_ACCESS } |
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.
please check latest security configuration in sylius. This access_control is out
"chart.js": "^3.9.1", | ||
"flag-icons": "^7.2.3", | ||
"infinite-tree": "^1.18.0", | ||
"jquery": "^3.6.0", |
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.
there is no jquery in sylius anymore :)
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've checked this, but I think @mpysiak review is more relevant than my
> | ||
<services> | ||
<service | ||
id="bitbag_sylius_blacklist_plugin.twig.component.automatic_blacklisting_configuration.form" |
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.
id="bitbag_sylius_blacklist_plugin.twig.component.automatic_blacklisting_configuration.form" | |
id="bitbag.sylius_blacklist_plugin.twig.component.automatic_blacklisting_configuration.form" |
For all services
<tag | ||
name="sylius.live_component" | ||
key="sylius_admin:fraud_suspicion:form" | ||
template="@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig" | ||
/> |
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 would use a formatting like below:
<tag | |
name="sylius.live_component" | |
key="sylius_admin:fraud_suspicion:form" | |
template="@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig" | |
/> | |
<tag name="sylius.live_component" | |
key="sylius_admin:fraud_suspicion:form" | |
template="@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig" | |
/> |
No description provided.