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

Add Symfony 7 support #139

Merged
merged 41 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6b6e7ef
Update Dependecies
TheCadien May 21, 2024
f16a0d5
Set TreeBuilder Interface
TheCadien May 21, 2024
d1db4bd
Update php versions in tests
TheCadien May 21, 2024
939d737
Update composer.json
TheCadien May 21, 2024
89b5c56
Remove 5.0 support of php-matcher
TheCadien May 22, 2024
fbed77a
Fix tests
TheCadien May 22, 2024
157ff4d
Remove old php versions
TheCadien May 22, 2024
77d84e2
Update PHPUnit
TheCadien May 22, 2024
c6e1c23
Update PHPStan
TheCadien May 22, 2024
f118784
update phpstan-prophecy
TheCadien May 22, 2024
b98bc88
update phpstan-strict-rules
TheCadien May 22, 2024
42fe066
Fix lint
TheCadien May 22, 2024
d92c588
Change Tests for different Sulu Versions
TheCadien May 28, 2024
5e5e398
Add min release for php matcher
TheCadien May 28, 2024
fb023ac
set php matcher to 6.0.15
TheCadien May 28, 2024
f273908
test again
TheCadien May 28, 2024
849c5d8
Set Min version to 13
TheCadien May 28, 2024
a9e4c42
Remove empty line
TheCadien May 28, 2024
b63bf87
Run CS fixer
TheCadien May 28, 2024
3d7f9f4
try higher phpunit version
TheCadien May 28, 2024
ca4e743
Update phpunit
TheCadien May 28, 2024
cb78135
try massiv search 2.9.1
TheCadien May 28, 2024
9874ca4
Change Tests and minimum to php 8
TheCadien May 30, 2024
10de126
Fix version typo
TheCadien May 30, 2024
9fc87f3
Allow lower phper matcher
TheCadien May 30, 2024
ce5fbb4
downgrade phpunit
TheCadien May 30, 2024
119b136
try special php version
TheCadien May 30, 2024
378dc46
try php 9.6
TheCadien May 30, 2024
fccc294
Add Symfony 7 support
TheCadien Jun 10, 2024
52bd36d
Test against Symfony 7 compatibility
alexander-schranz Jun 10, 2024
e3701ee
Test Symfony 7
alexander-schranz Jun 10, 2024
059da68
Fix test for dev branch
alexander-schranz Jun 10, 2024
0da65f9
Test 8.2 and 8.3 PHP against Symfony 7 rest against stable branches
alexander-schranz Jun 10, 2024
84b5bf6
Fix failing Symfony 6.0 tests by require atleast 5.4 or 6.3
alexander-schranz Jun 10, 2024
588eafd
Fix PHP 8.0 compatibility for tests to avoid mixed versions there
alexander-schranz Jun 10, 2024
7d14e43
Remove not required security bundle requirement
alexander-schranz Jun 10, 2024
d19f9cf
Merge branch 'symfony-7-support' of github.com:TheCadien/SuluHeadless…
TheCadien Jun 19, 2024
6e3bd27
Remove fork
alexander-schranz Jun 27, 2024
6c378d7
Remove fork branch installation
alexander-schranz Jun 28, 2024
958213b
Upgrade jackalope for symfony/console 7.0
alexander-schranz Jul 2, 2024
ba3f34c
Fix PHP 7.3 compatibility
alexander-schranz Jul 3, 2024
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
16 changes: 4 additions & 12 deletions .github/workflows/test-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,23 @@ jobs:
fail-fast: false
matrix:
include:
- php-version: '7.3'
- php-version: '8.2'
lint: false
coverage: false
dependency-versions: 'lowest'
tools: 'composer:v1'
tools: 'composer:v2'
env:
SYMFONY_DEPRECATIONS_HELPER: disabled

- php-version: '7.4'
- php-version: '8.2'
lint: true
coverage: true
dependency-versions: 'highest'
tools: 'composer:v2'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

- php-version: '8.0'
lint: false
coverage: false
dependency-versions: 'highest'
tools: 'composer:v2'
env:
SYMFONY_DEPRECATIONS_HELPER: weak

- php-version: '8.1'
- php-version: '8.3'
lint: false
coverage: false
dependency-versions: 'highest'
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('sulu_headless');
$rootNode = $treeBuilder->getRootNode();
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"type": "sulu-bundle",
"description": "Bundle that provides controllers and services for using Sulu as headless content management system",
"require": {
"php": "^7.3 || ^8.0",
"sulu/sulu": "^2.4 || ^2.5@dev",
"symfony/config": "^4.4 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
"symfony/http-foundation": "^4.4 || ^5.0 || ^6.0",
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0"
"php": "^8.2 || ^8.3",
Copy link
Member

Choose a reason for hiding this comment

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

This need to match sulu/sulu supported versions this need to be ^8.0 and the pipeline need also support 8.0 on lowest test.

"sulu/sulu": "^2.4 || ^2.5@dev || ^2.6@dev",
TheCadien marked this conversation as resolved.
Show resolved Hide resolved
alexander-schranz marked this conversation as resolved.
Show resolved Hide resolved
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0",
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"coduo/php-matcher": "^5.0 || ^6.0",
Expand All @@ -25,10 +25,10 @@
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-symfony": "^0.12",
"phpunit/phpunit": "^8.4",
"symfony/browser-kit": "^4.4 || ^5.0 || ^6.0",
"symfony/console": "^4.4 || ^5.0 || ^6.0",
"symfony/dotenv": "^4.4 || ^5.0 || ^6.0",
"symfony/error-handler": "^4.4 || ^5.0 || ^6.0",
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0",
"symfony/console": "^5.4 || ^6.0 || ^7.0",
"symfony/dotenv": "^5.4 || ^6.0 || ^7.0",
"symfony/error-handler": "^5.4 || ^6.0 || ^7.0",
"symfony/monolog-bundle": "^3.1",
"thecodingmachine/phpstan-strict-rules": "^0.12"
},
Expand Down
Loading