Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
67 changes: 67 additions & 0 deletions docs/update_and_migration/from_5.0/update_from_5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,73 @@
curl -fs https://get.symfony.com/cloud/configurator | bash
```

## v5.0.7

Check notice on line 337 in docs/update_and_migration/from_5.0/update_from_5.0.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/update_and_migration/from_5.0/update_from_5.0.md#L337

[Ibexa.SentenceCapitalizationInHeadings] Use sentence-style capitalization in headings
Raw output
{"message": "[Ibexa.SentenceCapitalizationInHeadings] Use sentence-style capitalization in headings", "location": {"path": "docs/update_and_migration/from_5.0/update_from_5.0.md", "range": {"start": {"line": 337, "column": 4}}}, "severity": "INFO"}

### Update Symfony from 7.3 to 7.4

This version of [[= product_name =]] requires [Symfony 7.4](https://symfony.com/releases/7.4).
Update Symfony constraints in `composer.json` before updating the packages.

1. In `composer.json`, update `extra.symfony.require` to allow installing higher Symfony version:
Comment thread
mnocon marked this conversation as resolved.
Outdated

```json
"extra": {
"symfony": {
"require": "7.4.*"
}
}
```

2. To allow installing Symfony 7.4, update the requirements for `symfony` packages in `composer.json` as in the example below::
Comment thread
mnocon marked this conversation as resolved.
Outdated

``` diff
- "symfony/console": "7.3.*",
+ "symfony/console": "7.4.*",
```
Comment on lines +354 to +359
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.*",
```


3. Review your code, configuration, and third-party bundles for Symfony 7.4 compatibility.
Comment thread
adriendupuis marked this conversation as resolved.

4. Update packages by running:

=== "[[= product_name_headless =]]"

``` 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
```
=== "[[= product_name_exp =]]"

``` bash
yarn upgrade @ibexa/frontend-config @ibexa/ts-config
composer require ibexa/experience:v5.0.7 --with-all-dependencies --no-scripts
composer recipes:install ibexa/experience --force -v
```
=== "[[= product_name_com =]]"

``` bash
yarn upgrade @ibexa/frontend-config @ibexa/ts-config
composer require ibexa/commerce:v5.0.7 --with-all-dependencies --no-scripts
composer recipes:install ibexa/commerce --force -v
```

5. Restore manually the entry for `JMSTranslationBundle` in `config/bundles.php` to [its previous position](https://github.com/ibexa/commerce-skeleton/blob/v5.0.6/config/bundles.php#L14):
Comment thread
mnocon marked this conversation as resolved.
Outdated

``` hl_lines="2"
FOS\HttpCacheBundle\FOSHttpCacheBundle::class => ['all' => true],
JMS\TranslationBundle\JMSTranslationBundle::class => ['all' => true],
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
```



!!! tip

As part of the [array-based PHP configuration format](https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration), a `config/reference.php` file will be created.
You should commit this file to the repository.

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).

## LTS Updates and additional packages

[LTS Updates](editions.md#lts-updates) are standalone packages with their own update procedures.
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ extra:
latest_tag_4_6: '4.6.28'
latest_tag_5_0: '5.0.6'

symfony_doc: 'https://symfony.com/doc/7.3'
symfony_doc: 'https://symfony.com/doc/7.4'
user_doc: 'https://doc.ibexa.co/projects/userguide/en/5.0'
connect_doc: 'https://doc.ibexa.co/projects/connect/en/latest'

Expand Down
Loading