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

Conversation

TheCadien
Copy link
Member

@TheCadien TheCadien commented May 21, 2024

Allow Symfony 7 Packages.

part of sulu/sulu#7413

@TheCadien TheCadien changed the title Wip: ymfony 7 support Wip: Symfony 7 support May 21, 2024
composer.json Outdated Show resolved Hide resolved
@TheCadien TheCadien changed the title Wip: Symfony 7 support Symfony 7 support May 21, 2024
@TheCadien TheCadien added the Feature New functionality not yet included in the Bundle label May 21, 2024
@TheCadien TheCadien mentioned this pull request May 21, 2024
96 tasks
@alexander-schranz alexander-schranz changed the title Symfony 7 support Add Symfony 7 support May 21, 2024
composer.json Outdated Show resolved Hide resolved
Co-authored-by: Alexander Schranz <[email protected]>
@TheCadien TheCadien marked this pull request as draft May 21, 2024 14:27
@TheCadien
Copy link
Member Author

I only have Sulu 2.6 in there at the moment, because otherwise the tests fail due to the change in. sulu/sulu#7238

What do you think @alexander-schranz ? Should we leave it as it is or what is the best way to go about it?

composer.json Outdated Show resolved Hide resolved
composer.json Outdated
Comment on lines 6 to 11
"repositories": [
{
"type": "vcs",
"url": "[email protected]:alexander-schranz/sulu.git"
}
],
Copy link
Member

@alexander-schranz alexander-schranz Jun 10, 2024

Choose a reason for hiding this comment

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

This need to be removed when sulu/sulu is merged sulu/sulu#7156:

Suggested change
"repositories": [
{
"type": "vcs",
"url": "[email protected]:alexander-schranz/sulu.git"
}
],
"repositories": [
{
"type": "vcs",
"url": "[email protected]:alexander-schranz/sulu.git"
}
],

@TheCadien the current Symfony 7 pull request requires this so we can test the compatibility correctly. We need to remove before merging it.

Comment on lines 91 to 94
- name: Install Symfony 7 dev branch # TODO remove
if: ${{ matrix.php-version == '8.2' || matrix.php-version == '8.3' }}
run: composer require sulu/sulu:"dev-feature/symfony-7-support as 2.6.3"

Copy link
Member

@alexander-schranz alexander-schranz Jun 10, 2024

Choose a reason for hiding this comment

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

This will be removed when sulu/sulu#7156 is merged. Currently here to test PHP 8.2 and 8.3 tasks against Symfony 7.

@alexander-schranz alexander-schranz force-pushed the symfony-7-support branch 2 times, most recently from 912a4ab to b3989ef Compare June 10, 2024 12:32
composer.json Outdated
"symfony/console": "^4.4 || ^5.4 || ^6.3 || ^7.0",
"symfony/dotenv": "^4.4 || ^5.4 || ^6.3 || ^7.0",
"symfony/error-handler": "^4.4 || ^5.4 || ^6.3 || ^7.0",
"symfony/security-bundle": "^4.4 || ^5.4 || ^6.3 || ^7.0",
Copy link
Member

@alexander-schranz alexander-schranz Jun 10, 2024

Choose a reason for hiding this comment

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

the security bundle did not define its dependency correctly in Symfony 6.0 to avoid mixed (framework 5.4 and security 6.0) installation of unsupported packages we force specific versions here to avoid: https://github.com/sulu/SuluHeadlessBundle/actions/runs/9448421512/job/26022383599?pr=139

Copy link
Member

@alexander-schranz alexander-schranz Jun 10, 2024

Choose a reason for hiding this comment

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

This will be fixed in sulu/sulu#7455 and so the change can may be reverted

alexander-schranz and others added 5 commits June 10, 2024 16:20
…Bundle into symfony-7-support

# Conflicts:
#	.github/workflows/test-application.yaml
#	Tests/Functional/Controller/NavigationControllerTest.php
#	composer.json
#	phpstan-baseline.neon
},
"require-dev": {
"coduo/php-matcher": "^5.0 || ^6.0",
"handcraftedinthealps/code-coverage-checker": "^0.2.1",
"handcraftedinthealps/zendsearch": "^2.0",
"jackalope/jackalope-doctrine-dbal": "^1.3.4",
"jackalope/jackalope-doctrine-dbal": "^1.3.4 || ^2.0",
Copy link
Member

Choose a reason for hiding this comment

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

@TheCadien PS: the jackalope versions need also be upgrade to support Symfony 7 else you still will get Symfony 6.4 for example for symfony/console.

@alexander-schranz
Copy link
Member

Looks like we need to fix 8.0 and 8.1 try to make the phpcr bundle requirements more strictly: doctrine/DoctrinePHPCRBundle#404

@alexander-schranz alexander-schranz merged commit ef8b826 into sulu:0.x Jul 3, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality not yet included in the Bundle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants