Upgrading symfony/config 7 to 8
Breakingv7.4.22 → v8.1.10Breaking2Platform1Deprecated5New5Changed2Fixed19Other1
Fetching 21 releases from GitHub…20 / 21
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- The old way of writing configuration in PHP with chained method calls is no longer supported.
- PHP config files can no longer use $this or reach into the loader's internal state.
- Symfony 8 now requires PHP version 8.4 or newer.
- The tools that auto-generate configuration builder classes are now deprecated and will be removed later.
Must act Top 5 of 8 that need code or config changes
PHP requirement changed in v8.1.0-BETA1: >=8.2 → >=8.4.1.
What you must change
Breaking2
Removes support for the fluent PHP config format.
Removes the ability to access $this and the loader's internal state.
$thisPlatform1
Bumps Symfony 8 to require PHP >= 8.4.
Deprecations to plan for
Deprecated5
Deprecates config builder generators.
Deprecates the fluent PHP format for semantic configuration.
Deprecates setting a default value on a node that is required.
Deprecates ExtensionInterface::getXsdValidationBasePath() and getNamespace().
ExtensionInterface::getXsdValidationBasePath()ExtensionInterface::getNamespace()Deprecates using $this or the internal scope of the loader from PHP config files.
$this