Skip to content
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-556 - Adding Sylius 2.0 support #58

Merged
merged 13 commits into from
Jan 13, 2025
Merged

Conversation

tomkalon
Copy link
Contributor

Behat

  • Changed require-dev mink-selenium2-driver version
  • Changed validator css style from: .sylius-validation-error to .invalid-feedback

11 scenarios (11 passed)
127 steps (127 passed)

PHPSpec

9 specs
37 examples (37 passed)

ECS fixes

Plugin files update

  • Updated plugin routes and Crud paths
  • Updated icon names
  • Updated twig files
  • Added sample exporter - (Frank Martin) and test it

Added Sylius 2.0 support

  • Updated composer.json

  • Updated packege.json and webpack.config.js
    --- added Stimulus controller
    --- updated webpack.config.js, assets path and added product-entry.js

  • Updated bundles.php

  • Updated routes

  • Updated Kernel.php

  • Updated configs - removed unnecessary files and
    --- updated security.yaml
    --- added mailer.yaml

@tomkalon tomkalon force-pushed the OP-556 branch 2 times, most recently from 5c2e7f8 to ec6194d Compare December 17, 2024 13:16
Comment on lines +38 to +50
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
"robertfausk/behat-panther-extension": "^1.1",
"sylius-labs/coding-standard": "^4.4",
"sylius-labs/suite-tags-extension": "~0.2",
"sylius/mailer-bundle": "^1.8 || ^2.0@beta",
"sylius/sylius-rector": "^2.0",
"symfony/browser-kit": "^6.4 || ^7.1",
"symfony/debug-bundle": "^6.4 || ^7.1",
"symfony/dependency-injection": "^6.4 || ^7.1",
"symfony/dotenv": "^6.4 || ^7.1",
"symfony/http-client": "^6.4 || ^7.1",
"symfony/intl": "^6.4 || ^7.1",
"symfony/web-profiler-bundle": "^6.4 || ^7.1"
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't sound good...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's require-dev, not conflicts.

Copy link
Member

Choose a reason for hiding this comment

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

Why the files have been moved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Finally, It seems, these files can be removed

@@ -0,0 +1,7 @@
framework:
mailer:
dsn: 'null://null'
Copy link
Member

Choose a reason for hiding this comment

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

How about using env variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment on lines +1 to +7
sylius_crud_routes:
resource: 'sylius.routing.loader.crud_routes_attributes'
type: service

sylius_routes:
resource: 'sylius.routing.loader.routes_attributes'
type: service
Copy link
Member

Choose a reason for hiding this comment

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

What's this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Routes from Sylius Standard

use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\NotBlank;

class FrankMartinShippingGatewayType extends AbstractType
Copy link
Member

Choose a reason for hiding this comment

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

missing final

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@senghe senghe merged commit 31c937f into BitBagCommerce:master Jan 13, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants