Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2d76fa1
feat: sylius 1 to sylius 2 upgrade all dependencie
bourtitom Jun 5, 2025
c63bb92
feat: ui to hook for sylius upgrade 2.x
bourtitom Jun 5, 2025
8648e1c
fix(hookname): change hookname for sylius 2.x
bourtitom Jun 10, 2025
7b9b3d1
docs(readme): Update Readme for sylius 2.0
bourtitom Jun 10, 2025
e5edca8
refacto: Update composer.json
bourtitom Jun 10, 2025
58b5097
fix: the event has not in good placement
bourtitom Jun 11, 2025
892ea68
refacto: change variable for passing data in sylius 2.0
bourtitom Jun 11, 2025
9744153
feat: add upgrade sylius 2.1
bourtitom Jun 11, 2025
611cc7c
docs: add sylius version
bourtitom Jun 11, 2025
cb7c474
refacto: all file in snake_case in sylius 2.x
bourtitom Jun 11, 2025
82c2fb9
fix: makefile sylius 2.1 to 2.0
bourtitom Jun 11, 2025
51ade02
fix(ci): update dependencies in sylius 2.1
bourtitom Jun 11, 2025
7856a18
fix(ci): limit Sylius compatibility to 2.0.x for now
bourtitom Jun 11, 2025
e7df779
fix(ci): limit Sylius compatibility to 2.0.x for now
bourtitom Jun 11, 2025
a08233d
refacto: rename folder in snake case
bourtitom Jun 11, 2025
05151f0
refacto: in sylius 2.x we dont need underscore, change the hookname, …
bourtitom Jun 12, 2025
1586837
feat: ease the transition to sylius 2.1
bourtitom Jun 12, 2025
08032e5
feat: application test on 2.1
bourtitom Jun 12, 2025
05bede9
docs: add 2.1 on readme
bourtitom Jun 12, 2025
e14158a
refacto: good hookname because old has not called
bourtitom Jun 13, 2025
720ee2f
Update src/Resources/config/sylius/sylius_twig_hooks.yaml
bourtitom Jun 16, 2025
b68e497
fix: comments test container for now wait sylius fix the bug
bourtitom Jun 23, 2025
bfe53aa
fix: interactive on CI
bourtitom Jun 23, 2025
74401e9
refacto: change location before make install and change githublogin t…
bourtitom Jun 23, 2025
57bb91a
fix: delete debug and add sudo make install for miss permission
bourtitom Jun 23, 2025
981dced
fix: add ssh for force CI
bourtitom Jun 23, 2025
f37b2f0
fix: debug wich worked
bourtitom Jun 23, 2025
752ceb7
fix(Makefile): change some path and yarn execution in Makefile
maximehuran Jun 24, 2025
622b0c0
fix(deps): add temporary fix for sylius setup
maximehuran Jun 24, 2025
762888a
fix: for the error 404
bourtitom Jun 24, 2025
a244dff
refacto: rename the file him have space
bourtitom Jun 24, 2025
3ec92bf
refacto: change structure of the file for sylius 2.x
bourtitom Jun 24, 2025
5b7eb77
fix(newStructure): fix bug of migration and fix name path
bourtitom Jul 8, 2025
f4a2aac
fix: phpcs deleted space and backline
bourtitom Jul 8, 2025
171aa89
fix: Ignored error pattern missingType.iterableValue was not matched …
bourtitom Jul 8, 2025
42c3a62
refacto: change the migration dir on root project
bourtitom Jul 9, 2025
e2a3f6d
fix: phpstan precise it's an array of strings
bourtitom Jul 9, 2025
be7db31
feat(admin): change icon
maximehuran Aug 18, 2025
66c7d5b
feat(test app): add dist file for channel context
maximehuran Aug 18, 2025
b835361
fix(hooks): rename and correct twig hooks
maximehuran Aug 18, 2025
9156a43
feat(tests): re add container tests !
maximehuran Aug 18, 2025
f45f06c
fix(dist): remove incorrect dist file
maximehuran Aug 18, 2025
fb34895
feat(hooks): change twig hook name for checkout
maximehuran Aug 18, 2025
0849cc4
feat(tests): re add php stan config ignore
maximehuran Aug 18, 2025
09d7d87
fix(tests): ignore unmatched php stan errors
maximehuran Aug 19, 2025
fa41c8d
docs: update images on docs
bourtitom Aug 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Flex Recipe

on:
push:
branches: [ master ]
branches: [ $default-branch ]
pull_request:

jobs:
Expand All @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
sylius: ["~1.12.0", "~1.13.0", "1.14.0"]
php: ['8.2', '8.3']
sylius: ['~2.0.0']

steps:
- name: Setup PHP
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
php: ['8.2', '8.3']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,4 +50,3 @@ jobs:
run: composer update --prefer-dist

- uses: symfonycorp/security-checker-action@v4

7 changes: 4 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tests

on:
push:
branches: [ master ]
branches: [ $default-branch ]
pull_request:

jobs:
Expand All @@ -14,7 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
php: ['8.2', '8.3']
node: ['20']

env:
SYMFONY_ARGS: --no-tls
Expand All @@ -25,7 +26,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: ${{ matrix.node }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DEFAULT_GOAL := help
SHELL=/bin/bash
APP_DIR=tests/Application
SYLIUS_VERSION=1.14.0
SYLIUS_VERSION=2.0.0
SYMFONY=cd ${APP_DIR} && symfony
COMPOSER=symfony composer
CONSOLE=${SYMFONY} console
Expand All @@ -10,7 +10,7 @@ export MIGRATIONS_NAMESPACE=MonsieurBiz\\SyliusScriptsPlugin\\Migrations
export USER_UID=$(shell id -u)
PLUGIN_NAME=sylius-${COMPOSE_PROJECT_NAME}-plugin
COMPOSE=docker compose
YARN=yarn
YARN=$$(command -v n >/dev/null 2>&1 && echo "n --download exec auto yarn" || echo "yarn")

###
### DEVELOPMENT
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ For example, add Google Analytics, Facebook Pixel, or any other tracking script.

| Sylius Version | PHP Version |
|----------------|-----------------|
| 1.12 | 8.1 - 8.2 - 8.3 |
| 1.13 | 8.1 - 8.2 - 8.3 |
| 1.14 | 8.1 - 8.2 - 8.3 |
| 2.0 | 8.2 - 8.3 |

ℹ️ For Sylius 1.x, see our [1.x branch](https://github.com/monsieurbiz/SyliusScriptsPlugin/tree/1.x) and all 1.x releases.

## Installation

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"description": "Allows you to add JS scripts from the admin panel.",
"license": "MIT",
"require": {
"monsieurbiz/sylius-settings-plugin": "^1.0.0",
"php": "^8.1",
"sylius/sylius": ">=1.12 <2.0"
"monsieurbiz/sylius-settings-plugin": "^2.0.0",
"php": "^8.2",
"sylius/sylius": "^2.0.0-alpha.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.16",
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "2.0-dev"
},
"symfony": {
"docker": false,
Expand Down
26 changes: 26 additions & 0 deletions src/Resources/config/sylius/sylius_twig_hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
sylius_twig_hooks:
hooks:
sylius_shop.base#metatags:
monsieurbiz_scripts_before_head_end:
template: '@MonsieurBizSyliusScriptsPlugin/Shop/Scripts/_beforeHeadEnd.html.twig'
priority: 9999

sylius_shop.base#javascripts:
monsieurbiz_scripts_after_body_start:
template: '@MonsieurBizSyliusScriptsPlugin/Shop/Scripts/_afterBodyStart.html.twig'
priority: 9999

sylius_shop.base.header:
monsieurbiz_scripts_before_body_end:
template: '@MonsieurBizSyliusScriptsPlugin/Shop/Scripts/_beforeBodyEnd.html.twig'
priority: 9999

sylius_shop.base.thank_you:
monsieurbiz_scripts_checkout_success:
template: '@MonsieurBizSyliusScriptsPlugin/Shop/Scripts/_checkoutSuccess.html.twig'
priority: 9999

sylius_admin.base#metatags:
monsieurbiz_scripts_admin_javascripts:
template: '@MonsieurBizSyliusScriptsPlugin/Admin/Scripts/_javascripts.html.twig'
priority: 9999
27 changes: 0 additions & 27 deletions src/Resources/config/sylius/ui.yaml

This file was deleted.

Loading