-
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
Open
jkindly
wants to merge
17
commits into
main
Choose a base branch
from
feature/OP-558
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f27a33f
OP-558: init
jkindly 9a5c8ac
OP-558: Sylius 2 upgrade
jkindly bbb2228
OP-558: Sylius 2 upgrade
jkindly 08fe848
OP-558: Build
jkindly 19965bc
OP-558: Coding standard
jkindly 31ddd4a
OP-558: actions/upload-artifact
jkindly 7db610f
OP-558: composer
jkindly 0e34a49
OP-558: composer
jkindly e5778f9
OP-558: composer
jkindly aee8ba9
OP-558: behat
jkindly 3f334ad
OP-558 - update blacklist plugin to sylus 2 - edit composer.json and …
dariusz-rup 762873f
OP-558 - update blacklist plugin to sylus 2 - remove jquery and fix f…
dariusz-rup 28148e1
OP-558 - update blacklist plugin to sylus 2 - move src/Resources/view…
dariusz-rup 64a6a58
OP-558 - change composer.json to sylius 2, update bundles.php, change…
dariusz-rup 010a1fa
OP-558 - change composer.json to sylius 2, update kernel and yaml fil…
dariusz-rup bdac93e
OP-558 - update plugin to Sylius 2, update composer.json, yaml files …
dariusz-rup 1b1223f
OP-558 - update plugin to Sylius 2 - fix errors in twigs
dariusz-rup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
/behat.yml | ||
/phpspec.yml | ||
/phpunit.xml | ||
.idea |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,4 @@ sylius_grid: | |
type: delete | ||
main: | ||
create: | ||
type: create | ||
type: create |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
bitbag_sylius_blacklist_plugin_admin: | ||
resource: "@BitBagSyliusBlacklistPlugin/config/routing/admin.yaml" | ||
prefix: /admin | ||
|
||
bitbag_sylius_blacklist_plugin_shop: | ||
resource: "@BitBagSyliusBlacklistPlugin/config/routing/shop.yaml" | ||
prefix: /{_locale} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
|
||
<container | ||
xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" | ||
> | ||
<services> | ||
<service | ||
id="bitbag_sylius_blacklist_plugin.twig.component.automatic_blacklisting_configuration.form" | ||
class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent" | ||
> | ||
<argument type="service" id="bitbag_sylius_blacklist_plugin.repository.automatic_blacklisting_configuration" /> | ||
<argument type="service" id="form.factory" /> | ||
<argument>%bitbag_sylius_blacklist_plugin.model.automatic_blacklisting_configuration.class%</argument> | ||
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\AutomaticBlacklistingConfigurationType</argument> | ||
|
||
<tag | ||
name="sylius.live_component" | ||
key="sylius_admin:automatic_blacklisting_configuration:form" | ||
template="@BitBagSyliusBlacklistPlugin/AutomaticBlacklistingConfiguration/Admin/form.html.twig" | ||
/> | ||
</service> | ||
|
||
<service | ||
id="bitbag_sylius_blacklist_plugin.twig.component.blacklisting_rule.form" | ||
class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent" | ||
> | ||
<argument type="service" id="bitbag_sylius_blacklist_plugin.repository.blacklisting_rule" /> | ||
<argument type="service" id="form.factory" /> | ||
<argument>%bitbag_sylius_blacklist_plugin.model.blacklisting_rule.class%</argument> | ||
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\BlacklistingRuleType</argument> | ||
|
||
<tag | ||
name="sylius.live_component" | ||
key="sylius_admin:blacklisting_rule:form" | ||
template="@BitBagSyliusBlacklistPlugin/BlacklistingRule/Admin/form.html.twig" | ||
/> | ||
</service> | ||
|
||
<service | ||
id="bitbag_sylius_blacklist_plugin.twig.component.fraud_suspicion.form" | ||
class="Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponent" | ||
> | ||
<argument type="service" id="bitbag_sylius_blacklist_plugin.repository.fraud_suspicion" /> | ||
<argument type="service" id="form.factory" /> | ||
<argument>%bitbag_sylius_blacklist_plugin.model.fraud_suspicion.class%</argument> | ||
<argument>BitBag\SyliusBlacklistPlugin\Form\Type\FraudSuspicionType</argument> | ||
|
||
<tag name="sylius.live_component" | ||
key="sylius_admin:fraud_suspicion:form" | ||
template="@BitBagSyliusBlacklistPlugin/FraudSuspicion/Admin/form.html.twig" | ||
/> | ||
</service> | ||
</services> | ||
</container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
|
||
<container | ||
xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" | ||
> | ||
<services> | ||
<service id="bitbag_sylius_blacklist_plugin.twig.extension.labels.automatic_blacklisting_configuration" | ||
class="BitBag\SyliusBlacklistPlugin\Twig\AutomaticBlacklistingConfigurationLabelsExtension"> | ||
<argument>%bitbag.sylius_blacklist_plugin.automatic_blacklisting_rules%</argument> | ||
<tag name="twig.extension"/> | ||
</service> | ||
</services> | ||
</container> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#framework: | ||
# workflows: | ||
# bitbag_sylius_blacklist_plugin_customer_state_machine: | ||
# type: state_machine | ||
# marking_store: | ||
# type: method | ||
# property: getMarking # Metoda w Twojej encji odpowiedzialna za przechowywanie stanu | ||
# supports: | ||
# - App\Entity\Customer | ||
# places: | ||
# - active | ||
# - inactive | ||
# transitions: | ||
# deactivate: | ||
# from: active | ||
# to: inactive | ||
# activate: | ||
# from: inactive | ||
# to: active | ||
|
||
# bitbag_sylius_blacklist_plugin_customer: | ||
# class: "%sylius.model.customer.class%" | ||
# property_path: fraudStatus | ||
# graph: bitbag_sylius_blacklist_plugin_customer | ||
# state_machine_class: "%sylius.state_machine.class%" | ||
# states: | ||
# neutral: ~ | ||
# blacklisted: ~ | ||
# transitions: | ||
# neutralizing: | ||
# from: [blacklisted] | ||
# to: neutral | ||
# blacklisting: | ||
# from: [neutral] | ||
# to: blacklisted | ||
# whitelisting: | ||
# from: [neutral] | ||
# to: whitelisted |
13 changes: 13 additions & 0 deletions
13
config/twig_hooks/automatic_blacklisting_configuration/create.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sylius_twig_hooks: | ||
hooks: | ||
'sylius_admin.automatic_blacklisting_configuration.create.content': | ||
form: | ||
component: 'sylius_admin:automatic_blacklisting_configuration:form' | ||
props: | ||
resource: '@=_context.resource' | ||
form: '@=_context.form' | ||
configuration: | ||
render_rest: false | ||
'sylius_admin.automatic_blacklisting_configuration.create.content.form': | ||
sections: | ||
template: '@BitBagSyliusBlacklistPlugin/AutomaticBlacklistingConfiguration/Admin/form.html.twig' |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.