Skip to content

Commit 89b9aad

Browse files
romainallanotdunglasJulieNobodyJacquesDurandlouis-iteracode
authored
Bump Recurr and update CHANGELOG (#68)
* chore: compatibility with PHP 8 * chore: php-cs-fixer * fix: cs * functional version PHP8.0 * functional version PHP8.0 test ok * fix/misc * delete gulp-sass * update gulp-sass * chore(deps): update plugin to be Symfony 6 + Sylius 1.12 compatible * fix(flex): add allow-plugin in composer.json * docs: mention docker-compose * fix(ci): rerun workflows on synchronize * fix(ci): symfony flex configuration * fix(ci): revert database url * chore: properly ignore drivers * chore: properly ignore build files * chore(deps): bump sylius calendar * fix(controller): remove session injection * fix(di): lock * feat: use attributes instead of annotations * chore(deps): bump minimal php + sylius requirements * feat: use attributes in test app * fix: new symfony session config in test app * fix: CS + review * fix(config): require pagerfanta * 👽️ fix - update rrule script path Maintainer of the lib rrule has changed his pseudo from jakubroztocil to jkbrzt * chore(deps): bump simshaun/recurr * Update CHANGELOG * fix: review --------- Co-authored-by: Kévin Dunglas <[email protected]> Co-authored-by: Julie <[email protected]> Co-authored-by: Hugo Nicolas <[email protected]> Co-authored-by: Louis VIART <[email protected]>
1 parent 1bbf69d commit 89b9aad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+18976
-352
lines changed

.github/workflows/ci.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
name: CI
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
49

510
jobs:
611
tests:
712

813
runs-on: ubuntu-latest
914

1015
env:
11-
DATABASE_URL: mysql://root:[email protected]/click_n_collect_test?serverVersion=5.7
16+
DATABASE_URL: mysql://root:[email protected]/coop_tilleuls_sylius_click_n_collect_plugin_%kernel.environment%?serverVersion=8.0
1217

1318
steps:
1419
- uses: actions/checkout@v2
1520

1621
- name: Validate composer.json and composer.lock
1722
run: composer validate
1823

19-
- name: Install Symfony Flex
20-
run: composer global require -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist symfony/flex
21-
2224
- name: Install dependencies
2325
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
2426

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77

88
/tests/Application/yarn.lock
99

10-
/.php_cs.cache
10+
/.php-cs-fixer.cache
1111
/.phpunit.result.cache
12+
/drivers/

.php_cs.dist .php-cs-fixer.dist.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'tests/Application/bin/console',
1919
]);
2020

21-
return PhpCsFixer\Config::create()
21+
return (new PhpCsFixer\Config())
2222
->setRiskyAllowed(true)
2323
->setRules([
2424
'@DoctrineAnnotation' => true,

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 1.0.0
4+
5+
* PHP 8 support
6+
* Compatibility with Symfony 6 and Sylius 1.12
7+
* Use PHP attributes instead of annotations
8+
* Fix(ci): rerun workflows on synchronize
9+
* Load full calendar scripts and styles from jsdelivr CDN instead of unpkg
10+
* Replace Location typehints by LocationInterface
11+
* Add approved by Sylius badge in README.md
12+
* Fix time slot stays booked when selecting another shipping method
13+
* Fix rrule script URL
14+
315
## 0.2.0
416

517
* Add SlotAvailableInterface

CONTRIBUTING.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ that is full of examples.
99
## Quickstart Installation
1010

1111
1. Run `composer install`.
12+
2. Run `docker compose up -d` to set up the local MySQL database
1213

13-
2. From the root directory, run the following commands:
14+
3. From the root directory, run the following commands:
1415

1516
$ (cd tests/Application && yarn install)
1617
$ (cd tests/Application && yarn build)
@@ -20,7 +21,7 @@ that is full of examples.
2021
$ (cd tests/Application && bin/console doctrine:schema:create -e panther)
2122
$ (cd tests/Application && bin/console sylius:fixtures:load -e panther)
2223

23-
To be able to setup a plugin's database, remember to configure you database credentials in `tests/Application/.env` and `tests/Application/.env.test`.
24+
To be able to setup a plugin's database, remember to configure your database credentials in `tests/Application/.env` and `tests/Application/.env.test`.
2425

2526
## Usage
2627

composer.json

+26-15
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,32 @@
55
"description": "Click and Collect plugin for Sylius, to sell and deliver securely during the COVID-19 pandemic.",
66
"license": "AGPL-3.0-or-later",
77
"require": {
8-
"php": "^7.4",
9-
"simshaun/recurr": "^4.0",
10-
"sylius/sylius": "^1.7",
11-
"symfony/lock": "^4.4 || ^5.0"
8+
"php": ">=8.0",
9+
"simshaun/recurr": "^5.0",
10+
"sylius/calendar": "^0.4.0",
11+
"sylius/mailer-bundle": "^2.0",
12+
"sylius/sylius": "^1.11",
13+
"symfony/lock": "^5.4 || ^6.0",
14+
"symfony/webpack-encore-bundle": "^1.16"
1215
},
1316
"require-dev": {
17+
"phpspec/prophecy-phpunit": "^2.0",
1418
"phpstan/extension-installer": "^1.0",
1519
"phpstan/phpstan": "^0.12.0",
1620
"phpstan/phpstan-doctrine": "^0.12.0",
1721
"phpstan/phpstan-strict-rules": "^0.12.0",
1822
"phpstan/phpstan-webmozart-assert": "^0.12.0",
19-
"phpunit/phpunit": "^8.0",
20-
"sensiolabs/security-checker": "^6.0",
21-
"sylius-labs/coding-standard": "^3.1",
22-
"symfony/browser-kit": "^4.4",
23-
"symfony/debug-bundle": "^4.4",
24-
"symfony/dotenv": "^4.4",
25-
"symfony/intl": "^4.4",
26-
"symfony/panther": "^0.7.1",
27-
"symfony/web-profiler-bundle": "^4.4",
28-
"symfony/web-server-bundle": "^4.4"
23+
"phpunit/phpunit": "^9.0",
24+
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
25+
"sylius-labs/coding-standard": "^4.0",
26+
"symfony/browser-kit": "^5.4 || ^6.0",
27+
"symfony/css-selector": "^6.1",
28+
"symfony/debug-bundle": "^5.4 || ^6.0",
29+
"symfony/dotenv": "^5.4 || ^6.0",
30+
"symfony/error-handler": "^6.1",
31+
"symfony/intl": "^5.4 || ^6.0",
32+
"symfony/panther": "^2.0",
33+
"symfony/web-profiler-bundle": "^5.4 || ^6.0"
2934
},
3035
"prefer-stable": true,
3136
"autoload": {
@@ -38,7 +43,13 @@
3843
"classmap": ["tests/Application/Kernel.php"]
3944
},
4045
"config": {
41-
"sort-packages": true
46+
"sort-packages": true,
47+
"allow-plugins": {
48+
"symfony/flex": true,
49+
"dealerdirect/phpcodesniffer-composer-installer": true,
50+
"phpstan/extension-installer": true,
51+
"symfony/thanks": true
52+
}
4253
},
4354
"conflict": {
4455
"doctrine/inflector": "^1.4"

docker-compose.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
mysql:
3+
image: mysql:8.0
4+
environment:
5+
MYSQL_ROOT_PASSWORD: mysql
6+
ports:
7+
- ${MYSQL_PORT:-3306}:3306

0 commit comments

Comments
 (0)