Skip to content

IBX-11485: Update doc for Symfony 7.4#3098

Open
mnocon wants to merge 4 commits into5.0from
symfony-7.4
Open

IBX-11485: Update doc for Symfony 7.4#3098
mnocon wants to merge 4 commits into5.0from
symfony-7.4

Conversation

@mnocon
Copy link
Copy Markdown
Contributor

@mnocon mnocon commented Mar 19, 2026

Target: Link change is for 5.0 only, but update instructions are 4.6 and 5.0

Adding update instructions for Symfony 7.4

Status: needs to be merged together with the 5.0.7 release.

JIRA: https://ibexa.atlassian.net/browse/IBX-11485

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 19, 2026

@mnocon mnocon changed the title Update doc for Symfny 7.4 Update doc for Symfony 7.4 Mar 19, 2026
@mnocon mnocon marked this pull request as ready for review March 19, 2026 09:49
@mnocon mnocon requested review from konradoboza and micszo March 19, 2026 09:50
@mnocon mnocon requested a review from ViniTou March 19, 2026 09:55
``` bash
yarn upgrade @ibexa/frontend-config @ibexa/ts-config
composer require ibexa/headless:v5.0.7 --with-all-dependencies --no-scripts
composer recipes:install ibexa/headless --force -v
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

due to how flex resolves recipes, and that we forked JMSTranslationBundle this command at first installs recipes for our fork - so it tries to add JMSTranslationBundle to bundles.php which is already there, and then it UNinstall recipes for original repository and that step eventually removes entry from bundles.php. There is no easy way around that, that would not affect fresh installs, so our suggestion at this moment is that after recipes:install you should manually restore

JMS\TranslationBundle\JMSTranslationBundle::class => ['all' => true], in bundles.php in old position

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, added in eb85427 , could you have a look?

Recipes - love them when they work, hate them when they don't 😓

@konradoboza
Copy link
Copy Markdown
Contributor

I took the liberty to add https://ibexa.atlassian.net/browse/IBX-11485 to this one, since it basically resolves this issue by adding an additional step. 😉

@konradoboza konradoboza changed the title Update doc for Symfony 7.4 IBX-11485: Update doc for Symfony 7.4 Mar 20, 2026
@mnocon mnocon requested a review from ViniTou March 20, 2026 11:25
Copy link
Copy Markdown
Contributor

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

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

Thank you @ViniTou and @mnocon!

@mnocon mnocon added Needs DOC review Wait with merge PRs that shouldn't be merged instantly and removed Needs DEV review labels Mar 24, 2026
@mnocon mnocon requested a review from a team March 24, 2026 08:28
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 bot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team March 24, 2026 08:28
@mnocon
Copy link
Copy Markdown
Contributor Author

mnocon commented Mar 30, 2026

@konradoboza I added a section for the "gotcha" of SF 7.4 (var/share dir) in fa5d64d , could you please have a look again?

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@adriendupuis adriendupuis left a comment

Choose a reason for hiding this comment

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

Section 2. shouldn't be empty and shouldn't let the reader helpless.

The "official Symfony upgrade instructions" paragraph could be moved up into this section 2.

Comment on lines +354 to +359
2. To allow installing Symfony 7.4, update the requirements for `symfony` packages in `composer.json` as in the example below:

``` diff
- "symfony/console": "7.3.*",
+ "symfony/console": "7.4.*",
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would try to emphase on that every package must be updated so reader don't do it only for the console as in the example:

Suggested change
2. To allow installing Symfony 7.4, update the requirements for `symfony` packages in `composer.json` as in the example below:
``` diff
- "symfony/console": "7.3.*",
+ "symfony/console": "7.4.*",
```
2. To allow installing Symfony 7.4, update the requirements for **all** `symfony` packages in `composer.json` as in the example below:
``` diff
- "symfony/<package>": "7.3.*",
+ "symfony/<package>": "7.4.*",
```

+ "symfony/console": "7.4.*",
```

3. Review your code, configuration, and third-party bundles for Symfony 7.4 compatibility.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems Rector can't help there, no rule for 7.4 in https://github.com/rectorphp/rector-symfony/tree/main/rules

Maybe we could link to https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.4.md sooner from this section

Comment on lines +395 to +396
For more details about the new version, see the official Symfony [upgrade instructions](https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.4.md) and [blog posts introducing this release](https://symfony.com/blog/category/living-on-the-edge/8.0-7.4).
Among the changes are:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Merge within section "2. Review your code,…"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs DOC review Wait with merge PRs that shouldn't be merged instantly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants