Skip to content

Commit

Permalink
feat: allow symfony dependency from 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
saifulferoz committed Sep 16, 2024
1 parent 045d727 commit 44be11e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.0', '8.1', '8.2','8.3' ]
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]

steps:
- name: Checkout
Expand Down
6 changes: 5 additions & 1 deletion Tests/Functional/config/switchuser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
imports:
- { resource: ./config.yml }
# Load validation config for PHP 8.0
- { resource: 'validation_php80.yaml', when@php: '8.0' }
# Load validation config for PHP 8.1 and higher
- { resource: 'validation_php81.yaml', when@php: '>=8.1' }

framework:
validation: { enabled: true, enable_attributes: true }

router:
resource: "%kernel.project_dir%/config/common/login_routing.yml"
csrf_protection: true
Expand Down
2 changes: 2 additions & 0 deletions Tests/Functional/config/validation_php80.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
framework:
validation: { enabled: true, enable_annotations: true }
2 changes: 2 additions & 0 deletions Tests/Functional/config/validation_php81.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
framework:
validation: { enabled: true, enable_attributes: true }
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
"source": "https://github.com/xiidea/EasyAuditBundle"
},
"require": {
"php": ">=8.1",
"php": ">=8.0.2",
"psr/log": "^1|^2|^3",
"symfony/framework-bundle": ">=6.0 <7.4.0",
"symfony/security-bundle": ">=6.0 <7.4.0"
"symfony/framework-bundle": ">=5.4 <7.4.0",
"symfony/security-bundle": ">=5.4 <7.4.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"php-coveralls/php-coveralls": "^2.1",
"doctrine/common": ">=2.2 <4.0",
"symfony/test-pack": "^1.0",
"symfony/twig-bundle": "^6.0",
"symfony/form": "^6.0",
"symfony/validator": "^6.0"
"symfony/twig-bundle": ">=5.4 <7.4",
"symfony/form": ">=5.4 <7.4",
"symfony/validator": ">=5.4 <7.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 44be11e

Please sign in to comment.