- Deprecated
Definition::setPrivate()
andAlias::setPrivate()
, usesetPublic()
instead
- Deprecated the public
form.factory
,form.type.file
,translator
,security.csrf.token_manager
,serializer
,cache_clearer
,filesystem
andvalidator
services to private.
- Deprecated
Address::fromString()
, useAddress::create()
instead
- Deprecated the public
twig
service to private.
- Changed 2nd argument type of
TranslationExtension::__construct()
toTranslationNodeVisitor
-
Deprecated the
allowEmptyString
option of theLength
constraint.Before:
use Symfony\Component\Validator\Constraints as Assert; /** * @Assert\Length(min=5, allowEmptyString=true) */
After:
use Symfony\Component\Validator\Constraints as Assert; /** * @Assert\AtLeastOneOf({ * @Assert\Blank(), * @Assert\Length(min=5) * }) */
- [BC break] In the experimental authenticator-based system, *
TokenInterface::getUser()
returnsnull
in case of unauthenticated session.