- 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. - If you configured the
framework.cache.prefix_seed
option, you might want to add the%kernel.environment%
to its value to keep cache namespaces separated by environment of the app. The%kernel.container_class%
(which includes the environment) used to be added by default to the seed, which is not the case anymore. This allows sharing caches between apps or different environments.
- Deprecated
PropertyPathMapper
in favor ofDataMapper
andPropertyPathAccessor
.
Before:
use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper;
$builder->setDataMapper(new PropertyPathMapper());
After:
use Symfony\Component\Form\Extension\Core\DataAccessor\PropertyPathAccessor;
use Symfony\Component\Form\Extension\Core\DataMapper\DataMapper;
$builder->setDataMapper(new DataMapper(new PropertyPathAccessor()));
MongoDbStore
does not implementBlockingStoreInterface
anymore, typehint againstPersistingStoreInterface
instead.- deprecated
NotSupportedException
, it shouldn't be thrown anymore. - deprecated
RetryTillSaveStore
, logic has been moved inLock
and is not needed anymore.
- Deprecated
Address::fromString()
, useAddress::create()
instead
- The
$actionLevel
constructor argument ofSymfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy
has been deprecated and replaced by the$inner
one which expects an ActivationStrategyInterface to decorate instead.Symfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy
will become final in 6.0. - The
$actionLevel
constructor argument ofSymfony\Bridge\Monolog\Handler\FingersCrossed\HttpCodeActivationStrategy
has been deprecated and replaced by the$inner
one which expects an ActivationStrategyInterface to decorate instead.Symfony\Bridge\Monolog\Handler\FingersCrossed\HttpCodeActivationStrategy
will become final in 6.0
- Deprecated passing a boolean as the first argument of
PropertyAccessor::__construct()
. Pass a combination of bitwise flags instead.
- Deprecated the
enable_magic_call_extraction
context option inReflectionExtractor::getWriteInfo()
andReflectionExtractor::getReadInfo()
in favor ofenable_magic_methods_extraction
.
- 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) * }) */
-
Deprecated the
NumberConstraintTrait
trait.
-
[BC break] In the experimental authenticator-based system, *
TokenInterface::getUser()
returnsnull
in case of unauthenticated session. -
[BC break]
AccessListener::PUBLIC_ACCESS
has been removed in favor ofAuthenticatedVoter::PUBLIC_ACCESS
. -
Deprecated
setProviderKey()
/getProviderKey()
in favor ofsetFirewallName()/getFirewallName()
inPreAuthenticatedToken
,RememberMeToken
,SwitchUserToken
,UsernamePasswordToken
,DefaultAuthenticationSuccessHandler
, the old methods will be removed in 6.0. -
Deprecated the
AbstractRememberMeServices::$providerKey
property in favor ofAbstractRememberMeServices::$firewallName
, the old property will be removed in 6.0.