Skip to content

Commit df47357

Browse files
authored
Merge pull request #4 from bourtitom/feat/Upgrade_2.0
2 parents c51c4f3 + 12a8ea2 commit df47357

File tree

30 files changed

+315
-260
lines changed

30 files changed

+315
-260
lines changed

.github/workflows/recipe.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Flex Recipe
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ $default-branch ]
66
pull_request:
77

88
jobs:
@@ -14,8 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
php: ['8.1', '8.2', '8.3']
18-
sylius: ["~1.12.0", "~1.13.0", "1.14.0"]
17+
php: [ '8.2', '8.3' ]
18+
sylius: [ '~2.0.0', '~2.1.0' ]
1919

2020
steps:
2121
- name: Setup PHP

.github/workflows/security.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php: ['8.1', '8.2', '8.3']
16+
php: ['8.2', '8.3']
1717

1818
steps:
1919
- uses: actions/checkout@v3
@@ -50,4 +50,3 @@ jobs:
5050
run: composer update --prefer-dist
5151

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

.github/workflows/tests.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ $default-branch ]
66
pull_request:
77

88
jobs:
@@ -14,7 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
php: ['8.1', '8.2', '8.3']
17+
php: [ '8.2', '8.3' ]
18+
node: [ '20' ]
1819

1920
env:
2021
SYMFONY_ARGS: --no-tls
@@ -25,7 +26,7 @@ jobs:
2526
- uses: actions/checkout@v2
2627
- uses: actions/setup-node@v2
2728
with:
28-
node-version: '14'
29+
node-version: ${{ matrix.node }}
2930
- name: Setup PHP
3031
uses: shivammathur/setup-php@v2
3132
with:

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DEFAULT_GOAL := help
22
SHELL=/bin/bash
33
APP_DIR=tests/Application
4-
SYLIUS_VERSION=1.14.0
4+
SYLIUS_VERSION=2.1.0
55
SYMFONY=cd ${APP_DIR} && symfony
66
COMPOSER=symfony composer
77
CONSOLE=${SYMFONY} console
@@ -138,13 +138,13 @@ test.container: ## Lint the symfony container
138138
${CONSOLE} lint:container
139139

140140
test.yaml: ## Lint the symfony Yaml files
141-
${CONSOLE} lint:yaml ../../src/Resources/config --parse-tags
141+
${CONSOLE} lint:yaml ../../config --parse-tags
142142

143143
test.schema: ## Validate MySQL Schema
144144
${CONSOLE} doctrine:schema:validate
145145

146146
test.twig: ## Validate Twig templates
147-
${CONSOLE} lint:twig --no-debug templates/ ../../src/Resources/views/
147+
${CONSOLE} lint:twig --no-debug templates/ ../../templates/
148148

149149
###
150150
### SYLIUS

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ This plugins allows you to customize colors, logos and background of the Sylius
1111

1212
## Compatibility
1313

14-
| Sylius Version | PHP Version |
15-
|----------------|-----------------|
16-
| 1.12 | 8.1 - 8.2 - 8.3 |
17-
| 1.13 | 8.1 - 8.2 - 8.3 |
18-
| 1.14 | 8.1 - 8.2 - 8.3 |
14+
| Sylius Version | PHP Version |
15+
|----------------|-------------|
16+
| 2.0, 2.1 | 8.2 - 8.3 |
17+
18+
ℹ️ For Sylius 1.x, see our [1.x branch](/tree/1.x) and all 1.x releases.
1919

2020
## Installation
2121

UPGRADE-2.0.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Upgrade Guide to Sylius 2.x
2+
3+
## Configuration Changes
4+
5+
- The configuration is now in `config` folder instead of `src/Resources/config`.
6+
7+
## Removed Settings
8+
9+
- Removed `circular_icon_color` setting from admin settings form and configuration
10+
11+
## Templates
12+
13+
- Templates path changed and now use Twig Hooks

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"description": "Manage your logos, colors and backgrounds with settings in Sylius Admin pannel",
66
"license": "MIT",
77
"require": {
8-
"monsieurbiz/sylius-media-manager-plugin": "^1.0",
9-
"monsieurbiz/sylius-settings-plugin": "^1.0",
10-
"php": "^8.1",
11-
"sylius/sylius": ">=1.12 <2.0"
8+
"monsieurbiz/sylius-media-manager-plugin": "^2.0",
9+
"monsieurbiz/sylius-settings-plugin": "^2.0",
10+
"php": "^8.2 || ^8.3",
11+
"sylius/sylius": "~2.0"
1212
},
1313
"require-dev": {
1414
"friendsofphp/php-cs-fixer": "^3.16",
@@ -38,7 +38,7 @@
3838
},
3939
"extra": {
4040
"branch-alias": {
41-
"dev-master": "1.1-dev"
41+
"dev-master": "2.0-dev"
4242
},
4343
"symfony": {
4444
"docker": false,

config/config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
imports:
2+
- { resource: 'images.yaml' }
3+
- { resource: 'twig_hooks.yaml' }
4+
- { resource: 'settings.yaml' }
File renamed without changes.

src/Resources/config/services.yaml renamed to config/services.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ services:
55
public: false
66

77
MonsieurBiz\SyliusBetterAdminPlugin\:
8-
resource: '../../*'
9-
exclude: '../../{Entity}'
8+
resource: '../src/*'
9+
exclude: '../src/{Entity}'
1010

1111
MonsieurBiz\SyliusBetterAdminPlugin\Controller\:
12-
resource: '../../Controller'
12+
resource: '../src/Controller'
1313
tags: [ 'controller.service_arguments' ]

0 commit comments

Comments
 (0)