-
Notifications
You must be signed in to change notification settings - Fork 81
IBX-11485: Update doc for Symfony 7.4 #3098
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
Changes from all commits
2ebad44
eb85427
9315139
fa5d64d
bc7d2f7
399171b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -334,6 +334,79 @@ | |||||||||||||||||||||||||
| 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
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ### 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 a higher Symfony version: | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ```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: | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ``` diff | ||||||||||||||||||||||||||
| - "symfony/console": "7.3.*", | ||||||||||||||||||||||||||
| + "symfony/console": "7.4.*", | ||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||
|
Comment on lines
+354
to
+359
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| 3. Review your code, configuration, and third-party bundles for Symfony 7.4 compatibility. | ||||||||||||||||||||||||||
adriendupuis marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| 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). | ||||||||||||||||||||||||||
| Key changes include: | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - Array-based PHP configuration format | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| 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. | ||||||||||||||||||||||||||
|
Check warning on line 368 in docs/update_and_migration/from_5.0/update_from_5.0.md
|
||||||||||||||||||||||||||
| You should commit this file to the repository. | ||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "should" implies that thay may under certain circumstances not commit the file, like Polish "powinien". "must" would imply no other option.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's optional, but recommended - it's the wording Symfony uses in https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration#:~:text=PHP%2E-,These,config%2F%22%5D%29%2E |
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - Independent application cache directory | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| Symfony 7.4 introduces a new [share directory](https://symfony.com/blog/new-in-symfony-7-4-share-directory), dedicated for storing application cache on the file system. | ||||||||||||||||||||||||||
| If you decide to configure it (for example, by setting the `APP_SHARE_DIR` environment variable), review your existing scripts for explicit `var/cache` usage (for example, `rm -rf var/cache`) and decide whether to include `var/share` in the script. | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| 4. Update Ibexa packages by running: | ||||||||||||||||||||||||||
|
Check failure on line 376 in docs/update_and_migration/from_5.0/update_from_5.0.md
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| === "[[= 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. Manually restore 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): | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ``` hl_lines="2" | ||||||||||||||||||||||||||
| FOS\HttpCacheBundle\FOSHttpCacheBundle::class => ['all' => true], | ||||||||||||||||||||||||||
| JMS\TranslationBundle\JMSTranslationBundle::class => ['all' => true], | ||||||||||||||||||||||||||
| Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true], | ||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| You're now running [Symfony 7.4, the current long-term support version](https://symfony.com/releases/7.4). | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ## LTS Updates and additional packages | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [LTS Updates](editions.md#lts-updates) are standalone packages with their own update procedures. | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.