Skip to content

Latest commit

 

History

History
137 lines (95 loc) · 5.75 KB

UPGRADE-6.2.md

File metadata and controls

137 lines (95 loc) · 5.75 KB

UPGRADE FROM 6.1 to 6.2

Config

  • Deprecate calling NodeBuilder::setParent() without any arguments

Console

  • Deprecate calling *Command::setApplication(), *FormatterStyle::setForeground/setBackground(), Helper::setHelpSet(), Input*::setDefault(), Question::setAutocompleterCallback/setValidator()without any arguments
  • Change the signature of OutputFormatterStyleInterface::setForeground/setBackground() to setForeground/setBackground(?string)
  • Change the signature of HelperInterface::setHelperSet() to setHelperSet(?HelperSet)

DependencyInjection

  • Change the signature of ContainerAwareInterface::setContainer() to setContainer(?ContainerInterface)
  • Deprecate calling ContainerAwareTrait::setContainer() without arguments
  • Deprecate using numeric parameter names

Form

  • Deprecate calling Button/Form::setParent(), ButtonBuilder/FormConfigBuilder::setDataMapper(), TransformationFailedException::setInvalidMessage() without arguments
  • Change the signature of FormConfigBuilderInterface::setDataMapper() to setDataMapper(?DataMapperInterface)
  • Change the signature of FormInterface::setParent() to setParent(?self)

FrameworkBundle

  • Deprecate the Symfony\Component\Serializer\Normalizer\ObjectNormalizer and Symfony\Component\Serializer\Normalizer\PropertyNormalizer autowiring aliases, type-hint against Symfony\Component\Serializer\Normalizer\NormalizerInterface or implement NormalizerAwareInterface instead
  • Deprecate AbstractController::renderForm(), use render() instead
  • Deprecate FrameworkExtension::registerRateLimiter()

HttpFoundation

  • Deprecate Request::getContentType(), use Request::getContentTypeFormat() instead
  • Deprecate calling JsonResponse::setCallback(), Response::setExpires/setLastModified/setEtag(), MockArraySessionStorage/NativeSessionStorage::setMetadataBag(), NativeSessionStorage::setSaveHandler() without arguments

HttpClient

  • Deprecate implementing Http\Message\RequestFactory, StreamFactory and UriFactory on HttplugClient

HttpKernel

  • Deprecate ArgumentValueResolverInterface, use ValueResolverInterface instead
  • Deprecate calling ConfigDataCollector::setKernel(), RouterListener::setCurrentRequest() without arguments

Ldap

  • Deprecate {username} parameter use in favour of {user_identifier}

Mailer

  • Deprecate the OhMySMTP transport, use MailPace instead

Messenger

  • Deprecate MessageHandlerInterface and MessageSubscriberInterface, use the AsMessageHandler attribute instead

Mime

  • Deprecate Email::attachPart(), use addPart() instead
  • Deprecate calling Message::setBody() without arguments

Notifier

  • [BC BREAK] The following data providers for TransportTestCase are now static: toStringProvider(), supportedMessagesProvider() and unsupportedMessagesProvider()
  • [BC BREAK] The TransportTestCase::createTransport() method is now static

PropertyAccess

  • Deprecate calling PropertyAccessorBuilder::setCacheItemPool() without arguments
  • Implementing the PropertyPathInterface without implementing the isNullSafe() method is deprecated

Security

  • Add maximum username length enforcement of 4096 characters in UserBadge to prevent session storage flooding
  • Deprecate the Symfony\Component\Security\Core\Security class and service, use Symfony\Bundle\SecurityBundle\Security instead
  • Deprecate the Symfony\Bundle\SecurityBundle\Security::ACCESS_DENIED_ERROR property, use Symfony\Component\Security\Http\SecurityRequestAttributes::ACCESS_DENIED_ERROR instead
  • Deprecate the Symfony\Bundle\SecurityBundle\Security::AUTHENTICATION_ERROR property, use Symfony\Component\Security\Http\SecurityRequestAttributes::AUTHENTICATION_ERROR instead
  • Deprecate the Symfony\Bundle\SecurityBundle\Security::LAST_USERNAME property, use Symfony\Component\Security\Http\SecurityRequestAttributes::LAST_USERNAME instead
  • Deprecate the Symfony\Bundle\SecurityBundle\Security::MAX_USERNAME_LENGTH property, use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge::MAX_USERNAME_LENGTH instead
  • Passing empty username or password parameter when using JsonLoginAuthenticator is not supported anymore
  • Add $lifetime parameter to LoginLinkHandlerInterface::createLoginLink()
  • Change the signature of TokenStorageInterface::setToken() to setToken(?TokenInterface $token)
  • Deprecate calling TokenStorage::setToken() or UsageTrackingTokenStorage::setToken() without arguments

SecurityBundle

  • Deprecate the security.enable_authenticator_manager config option

Serializer

  • Deprecate calling AttributeMetadata::setSerializedName(), ClassMetadata::setClassDiscriminatorMapping() without arguments
  • Change the signature of AttributeMetadataInterface::setSerializedName() to setSerializedName(?string)
  • Change the signature of ClassMetadataInterface::setClassDiscriminatorMapping() to setClassDiscriminatorMapping(?ClassDiscriminatorMapping)

Translation

  • Deprecate PhpExtractor in favor of PhpAstExtractor
  • Add PhpAstExtractor (requires nikic/php-parser to be installed)

Validator

  • Deprecate the loose e-mail validation mode, use html5 instead

VarDumper

  • Deprecate calling VarDumper::setHandler() without arguments

Workflow

  • The first argument of WorkflowDumpCommand should be a ServiceLocator of all workflows indexed by names
  • Deprecate calling Definition::setInitialPlaces() without arguments