-
Notifications
You must be signed in to change notification settings - Fork 83
Add error handler warning to update guide #2841
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
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 |
---|---|---|
|
@@ -52,6 +52,17 @@ In production setups: | |
- Always enable opcache for php-fpm/`mod_php`. | ||
- Prefer php-fpm and web server using it over fast-cgi for lower overall memory usage. | ||
|
||
!!! caution | ||
|
||
To avoid deprecations when using PHP 8.2 or 8.3, [[= product_name =]] v4.6 needs an additional error handler. | ||
The error handler is present by default for projects that started with 4.6.8 or later. | ||
For projects that started with earlier versions, you need to add the error handler manually by running the following commands: | ||
|
||
``` bash | ||
composer config extra.runtime.error_handler "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler" | ||
composer dump-autoload | ||
``` | ||
|
||
Comment on lines
+55
to
+65
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 clear that "update_from_4.6" is only about 4.6 and in the continuation "update_to_5.0" removes it. But for "performance" when on 5.0 branch of our doc, this is less clear. It's not since 4.6 that this is needed, it's for 4.6 only. I would add something about 5.0 not needing this, or I would have it only on 4.6 branch but not on 5.0 branch. |
||
### Symfony | ||
|
||
- Review the [Symfony performance documentation]([[= symfony_doc =]]/performance.html) and apply matching suggestions, including OPCache configuration if enabled. | ||
|
Uh oh!
There was an error while loading. Please reload this page.