Symfony 7.1 is a minor release. According to the Symfony release process, there should be no significant
backward compatibility breaks. Minor backward compatibility breaks are prefixed in this document with
[BC BREAK]
, make sure your code is compatible with these entries before upgrading.
Read more about this in the Symfony documentation.
If you're upgrading from a version below 7.0, follow the 7.0 upgrade guide first.
Bundles
Bridges
Components
- AssetMapper
- Cache
- DependencyInjection
- ExpressionLanguage
- Form
- Intl
- HttpClient
- PropertyInfo
- Translation
- Workflow
- Deprecate
ImportMapConfigReader::splitPackageNameAndFilePath()
, useImportMapEntry::splitPackageNameAndFilePath()
instead
- Deprecate
CouchbaseBucketAdapter
, useCouchbaseCollectionAdapter
with Couchbase 3 instead
- [BC BREAK] When used in the
prependExtension()
method, theContainerConfigurator::import()
method now prepends the configuration instead of appending it - Deprecate
#[TaggedIterator]
and#[TaggedLocator]
attributes, use#[AutowireIterator]
and#[AutowireLocator]
instead
- Deprecated
DoctrineExtractor::getTypes()
, useDoctrineExtractor::getType()
instead
- Deprecate passing
null
as the allowed variable names toExpressionLanguage::lint()
andParser::lint()
, pass theIGNORE_UNKNOWN_VARIABLES
flag instead to ignore unknown variables during linting
- Deprecate not configuring the
default_protocol
option of theUrlType
, it will default tonull
in 8.0 (the current default is'http'
)
- Mark classes
ConfigBuilderCacheWarmer
,Router
,SerializerCacheWarmer
,TranslationsCacheWarmer
,Translator
andValidatorCacheWarmer
asfinal
- Deprecate the
router.cache_dir
config option, the Router will always use thekernel.build_dir
parameter - Reset env vars when resetting the container
- Deprecate the
setLogger()
methods of theNoPrivateNetworkHttpClient
,TraceableHttpClient
andScopingHttpClient
classes, configure the logger of the wrapped clients directly instead
- [BC BREAK] Extracted
EmojiTransliterator
to a separatesymfony/emoji
component, the new FQCN isSymfony\Component\Emoji\EmojiTransliterator
. You must install thesymfony/emoji
component if you're using the oldEmojiTransliterator
class in the Intl component.
- Postmark's "406 - Inactive recipient" API error code now results in a
PostmarkDeliveryEvent
instead of throwing aHttpTransportException
- Deprecate
Extension::addAnnotatedClassesToCompile()
and related code infrastructure
- Mark class
ExpressionCacheWarmer
asfinal
- Mark class
DataCollectorTranslator
asfinal
- Mark class
TemplateCacheWarmer
asfinal
- Deprecate not passing a value for the
requireTld
option to theUrl
constraint (the default value will becometrue
in 8.0) - Deprecate
Bic::INVALID_BANK_CODE_ERROR
- Add method
getEnabledTransition()
toWorkflowInterface
- Add
$nbToken
argument toMarking::mark()
andMarking::unmark()