e37091541c
This allows to e.g. have some objects that can be viewed by anyone (even unauthenticated users).
956 B
956 B
UPGRADE FROM 5.1 to 5.2
DependencyInjection
- Deprecated
Definition::setPrivate()
andAlias::setPrivate()
, usesetPublic()
instead
Mime
- Deprecated
Address::fromString()
, useAddress::create()
instead
TwigBundle
- Deprecated the public
twig
service to private.
Validator
-
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) * }) */
Security
- [BC break] In the experimental authenticator-based system, *
TokenInterface::getUser()
returnsnull
in case of unauthenticated session.