Skip to content

Latest commit

 

History

History
251 lines (227 loc) · 55.2 KB

incompatibilities-4-2-alpha-2.md

File metadata and controls

251 lines (227 loc) · 55.2 KB

ApiBundle

  • The following classes were removed:

    • EntityPropertyAccessor[?]
    • EntityScalarCollectionType[?]
    • ScalarCollectionType[?]
    • RemoveSingleItemRestRouteOptionsResolver[?]
  • The AccessGranted::validatedBy[?] method was removed.

  • The EntityCollectionType::buildForm[?] method was removed.

  • The following methods in class ContextInterface[?] were removed:

    • getRequestType[?]
    • getVersion[?]
    • setVersion[?]
    • getSharedData[?]
    • setSharedData[?]
  • The FieldAccessor::getFieldsToSelect($entityClass, EntityConfig $config, $withAssociations = false)[?] method was changed to FieldAccessor::getFieldsToSelect(string $entityClass, EntityConfig $config, bool $withAssociations = false)[?]

  • The CacheManager::__construct(array $configKeys, array $apiDocViews, RequestExpressionMatcher $matcher, ConfigCacheFactory $configCacheFactory, ConfigCacheWarmer $configCacheWarmer, EntityAliasResolverRegistry $entityAliasResolverRegistry, ResourcesCacheWarmer $resourcesCacheWarmer, ApiDocExtractor $apiDocExtractor)[?] method was changed to CacheManager::__construct(array $configKeys, array $apiDocViews, RequestExpressionMatcher $matcher, ConfigCacheFactory $configCacheFactory, ConfigCacheWarmer $configCacheWarmer, EntityAliasResolverRegistry $entityAliasResolverRegistry, ResourcesCacheWarmer $resourcesCacheWarmer, ApiDocExtractor $apiDocExtractor, ConfigProvider $configProvider)[?]

  • The BuildFormBuilder::__construct(FormHelper $formHelper, bool $enableFullValidation = false)[?] method was changed to BuildFormBuilder::__construct(FormHelper $formHelper, DoctrineHelper $doctrineHelper, bool $enableFullValidation = false)[?]

  • The following methods in class SetDefaultSorting[?] were changed:

    • addSortFilter(string $filterName, FilterCollection $filters, EntityDefinitionConfig $config)[?]
    • addSortFilter(string $filterName, FilterCollection $filters, EntityDefinitionConfig $config, $configOfSorters)[?]
    • getDefaultValue(EntityDefinitionConfig $config)[?]
    • getDefaultValue(EntityDefinitionConfig $config, $configOfSorters)[?]
  • The FormUtil::addNamedFormError(FormInterface $form, string $errorType, string $errorMessage, string $propertyPath = null)[?] method was changed to FormUtil::addNamedFormError(FormInterface $form, string $errorType, string $errorMessage, string $propertyPath = null, int $statusCode = null)[?]

  • The NamedValidationConstraint::__construct(string $constraintType)[?] method was changed to NamedValidationConstraint::__construct(string $constraintType, int $statusCode = null)[?]

  • The ActionNotAllowedException::__construct()[?] method was changed to ActionNotAllowedException::__construct(string $message)[?]

  • The ResourceNotAccessibleException::__construct()[?] method was changed to ResourceNotAccessibleException::__construct(string $message)[?]

  • The RestDocFiltersHandler::__construct(RestDocViewDetector $docViewDetector, ValueNormalizer $valueNormalizer, ApiDocDataTypeConverter $dataTypeConverter)[?] method was changed to RestDocFiltersHandler::__construct(RestDocViewDetector $docViewDetector, ValueNormalizer $valueNormalizer, ApiDocDataTypeConverter $dataTypeConverter, FiltersSorterRegistry $sorterRegistry)[?] The following methods in interface FormContext were added (with link)

    • getAdditionalEntities[?]
    • addAdditionalEntity[?]
    • removeAdditionalEntity[?]

CronBundle

  • The ScheduleIntervalsIntersection::validatedBy[?] method was removed.
  • The following methods in class ScheduleIntervalsIntersectionValidator[?] were removed:
    • buildDefaultViolation[?]
    • buildViolationOnApiForm[?]

DoctrineUtils

  • The SqlWalker[?] class was removed.
  • The AddTransactionWatcherCompilerPass::__construct(string $transactionWatcherTag, string $connectionName)[?] method was changed to AddTransactionWatcherCompilerPass::__construct(string $transactionWatcherTag, string $connectionName = null)[?]
  • The ChainTransactionWatcher::onTransactionCommited[?] method was removed.
  • The TransactionWatcherInterface::onTransactionCommited[?] method was removed.
  • The TransactionWatcherInterface::onTransactionCommitted[?] interface method was added.

EmailBundle

  • The SendEmailTemplate::__construct(ContextAccessor $contextAccessor, Processor $emailProcessor, EmailAddressHelper $emailAddressHelper, EntityNameResolver $entityNameResolver, ManagerRegistry $registry, ValidatorInterface $validator, LocalizedTemplateProvider $localizedTemplateProvider, EmailOriginHelper $emailOriginHelper)[?] method was changed to SendEmailTemplate::__construct(ContextAccessor $contextAccessor, Processor $emailProcessor, EmailAddressHelper $emailAddressHelper, EntityNameResolver $entityNameResolver, ValidatorInterface $validator, AggregatedEmailTemplatesSender $sender)[?]
  • The EmailModelBuilder::__construct(EmailModelBuilderHelper $emailModelBuilderHelper, EntityManager $entityManager, ConfigManager $configManager, EmailActivityListProvider $activityListProvider, EmailAttachmentProvider $emailAttachmentProvider, Factory $factory, RequestStack $requestStack, HtmlTagHelper $htmlTagHelper)[?] method was changed to EmailModelBuilder::__construct(EmailModelBuilderHelper $emailModelBuilderHelper, EntityManager $entityManager, ConfigManager $configManager, EmailActivityListProvider $activityListProvider, EmailAttachmentProvider $emailAttachmentProvider, Factory $factory, RequestStack $requestStack, HtmlTagHelper $htmlTagHelper, FileConstraintsProvider $fileConstraintsProvider)[?]

EntityConfigBundle

  • The AttributeConfigurationProvider::isAttributeVisible[?] method was removed.
  • The AttributeConfigurationProviderInterface::isAttributeVisible[?] method was removed.

EntityExtendBundle

  • The EntityExtendFormExtension[?] class was removed.
  • The EnumFieldConfigSubscriber::__construct(ConfigManager $configManager, TranslatorInterface $translator, EnumSynchronizer $enumSynchronizer)[?] method was changed to EnumFieldConfigSubscriber::__construct(ConfigManager $configManager, TranslatorInterface $translator, EnumSynchronizer $enumSynchronizer, ExtendDbIdentifierNameGenerator $nameGenerator)[?]

EntitySerializer

  • The EntityMetadata::getDiscriminatorValue($entityClass)[?] method was changed to EntityMetadata::getDiscriminatorValue(string $entityClass)[?]
  • The FieldAccessor::getFields($entityClass, EntityConfig $config)[?] method was changed to FieldAccessor::getFields(string $entityClass, EntityConfig $config)[?]
  • The following methods in class EntitySerializer[?] were removed:
    • updateQuery[?]
    • getExistingJoinAlias[?]
    • updateSelectQueryPart[?]
    • getAssociationQuery[?]
    • getPropertyPath[?]
    • getTargetEntity[?]

ImportExportBundle

  • The ImportStrategyHelper::checkEntityOwnerPermissions(ContextInterface $context, $entity)[?] method was changed to ImportStrategyHelper::checkEntityOwnerPermissions(ContextInterface $context, $entity, bool $suppressErrorOutput = false)[?]
  • The DatabaseHelper::find($entityName, $identifier)[?] method was changed to DatabaseHelper::find($entityName, $identifier, $withLimitations = true)[?]

MessageQueue

  • The following classes were removed:
    • NullConnection[?]
    • NullMessage[?]
    • NullMessageConsumer[?]
    • NullMessageProducer[?]
    • NullQueue[?]
    • NullSession[?]
    • NullTopic[?]
    • InvalidDestinationException[?]
    • DbalDestination[?]
    • DbalMessageToArrayConverter[?]
    • MessageTranslatorProcessor[?]
    • NullDriver[?]
  • The InvalidMessageException::assertMessageInstanceOf[?] method was removed.
  • The following methods in class DbalMessage[?] were removed:
    • setBody[?]
    • getBody[?]
    • setProperties[?]
    • getProperties[?]
    • getProperty[?]
    • setHeaders[?]
    • getHeaders[?]
    • getHeader[?]
    • isRedelivered[?]
    • setRedelivered[?]
    • getPriority[?]
    • setPriority[?]
    • getDelay[?]
    • setDelay[?]
    • setCorrelationId[?]
    • getCorrelationId[?]
    • setMessageId[?]
    • getMessageId[?]
    • getTimestamp[?]
    • setTimestamp[?]
    • __clone[?]
  • The following methods in class DbalMessageConsumer[?] were removed:
    • getQueue[?]
    • receiveNoWait[?]
  • The following methods in class DbalSession[?] were removed:
    • createTopic[?]
    • declareTopic[?]
    • declareQueue[?]
    • declareBind[?]
  • The Recipient::getDestination[?] method was removed.
  • The following methods in class MessageConsumerInterface[?] were removed:
    • getQueue[?]
    • receiveNoWait[?]
  • The following methods in class SessionInterface[?] were removed:
    • createTopic[?]
    • declareTopic[?]
    • declareQueue[?]
    • declareBind[?]
  • The DbalMessage::setId($id)[?] method was changed to DbalMessage::setId(int $id)[?]
  • The DbalMessageConsumer::__construct(DbalSession $session, DbalDestination $queue)[?] method was changed to DbalMessageConsumer::__construct(DbalSessionInterface $session, QueueInterface $queue)[?]
  • The DbalMessageProducer::__construct(DbalConnection $connection)[?] method was changed to DbalMessageProducer::__construct(ConnectionInterface $connection)[?]
  • The DbalSession::createMessage($body = null, array $properties = [], array $headers = [])[?] method was changed to DbalSession::createMessage(string $body, array $properties = [], array $headers = [])[?]
  • The Recipient::__construct(DestinationInterface $destination, MessageInterface $message)[?] method was changed to Recipient::__construct(QueueInterface $queue, MessageInterface $message)[?]
  • The DbalDriver::__construct(DbalSession $session, Config $config)[?] method was changed to DbalDriver::__construct(SessionInterface $session, Config $config)[?]
  • The MessageInterface::setBody($body)[?] method was changed to MessageInterface::setBody(string $body)[?]
  • The MessageProducerInterface::send(DestinationInterface $destination, MessageInterface $message)[?] method was changed to MessageProducerInterface::send(QueueInterface $queue, MessageInterface $message)[?]
  • The SessionInterface::createMessage($body = null, array $properties = [], array $headers = [])[?] method was changed to SessionInterface::createMessage(string $body, array $properties = [], array $headers = [])[?]
  • The DriverInterface::createQueue($queueName)[?] method was changed to DriverInterface::createQueue(string $queueName)[?]
  • The following interfaces were removed:
    • DestinationInterface[?]
    • TopicInterface[?] The following methods in interface MessageInterface were added (with link)
    • getPriority[?]
    • setPriority[?]
    • getDelay[?]
    • setDelay[?]

MessageQueueBundle

  • The following classes were removed:
    • NullTransportFactory[?]
    • DatabaseConnectionsClearer[?]
    • DoctrinePingConnectionExtension[?]
  • The SecurityAwareDriver::createQueue($queueName)[?] method was changed to SecurityAwareDriver::createQueue(string $queueName)[?]
  • The DoctrineClearIdentityMapExtension::__construct(ContainerInterface $container)[?] method was changed to DoctrineClearIdentityMapExtension::__construct(ContainerInterface $container, array $managers)[?]
  • The BufferedMessageProducer::__construct(MessageProducerInterface $producer)[?] method was changed to BufferedMessageProducer::__construct(MessageProducerInterface $producer, LoggerInterface $logger, MessageFilterInterface $filter)[?]
  • The DoctrineClearIdentityMapExtension::reset[?] method was removed.
  • The LocaleExtension::onBeforeReceive[?] method was removed.
  • The DbalTransactionWatcher::onTransactionCommited[?] method was removed.

MigrationBundle

  • The DataFixtureRepository[?] class was removed.
  • The UpdateDataFixturesFixture::setDataFixtures[?] method was removed.
  • The DataFixturesLoader::isFixtureAlreadyLoaded[?] method was removed.
  • The UpdateDataFixturesFixture::$dataFixturesClassNames[?] property was removed.

NavigationBundle

  • The MenuUpdateUtils::updateMenuUpdate(MenuUpdateInterface $update, ItemInterface $item, $menuName, MenuUpdateHelper $menuUpdateHelper, array $extrasMapping = [ ... ])[?] method was changed to MenuUpdateUtils::updateMenuUpdate(MenuUpdateInterface $update, ItemInterface $item, $menuName, MenuUpdateHelper $menuUpdateHelper, array $extrasMapping = [ ... ])[?]
  • The MenuUpdateInterface::getLinkAttributes[?] interface method was added.

NotificationBundle

  • The following classes were removed:
  • The EmailNotificationGridHelper::__construct(ManagerRegistry $doctrine)[?] method was changed to EmailNotificationGridHelper::__construct(ManagerRegistry $doctrine, array $events)[?]
  • The EmailNotificationType::__construct(BuildTemplateFormSubscriber $buildTemplateSubscriber, AdditionalEmailsSubscriber $additionalEmailsSubscriber, RouterInterface $router, ContactInformationEmailsSubscriber $contactInformationEmailsSubscriber)[?] method was changed to EmailNotificationType::__construct(BuildTemplateFormSubscriber $buildTemplateSubscriber, AdditionalEmailsSubscriber $additionalEmailsSubscriber, RouterInterface $router, ContactInformationEmailsSubscriber $contactInformationEmailsSubscriber, array $events)[?]
  • The following methods in class EmailNotification[?] were removed:
  • The EmailNotification::$event[?] property was removed.

PlatformBundle

  • The HelpCommand[?] class was removed.

Query

  • The Cast[?] class was removed.

QueryDesignerBundle

  • The SqlWalker[?] class was removed.

SearchBundle

  • The SearchReindexationGlobalOptionsProvider[?] class was removed.

SegmentBundle

  • The SegmentManager::__construct(EntityManager $em, SegmentQueryBuilderRegistry $builderRegistry, SubQueryLimitHelper $subQueryLimitHelper, Cache $cache)[?] method was changed to SegmentManager::__construct(EntityManager $em, SegmentQueryBuilderRegistry $builderRegistry, SubQueryLimitHelper $subQueryLimitHelper, Cache $cache, AclHelper $aclHelper)[?]

SyncBundle

  • The PubSubRouterCachePass[?] class was removed.

UserBundle

  • The LoginAttemptsLogSubscriber::__construct(BaseUserManager $userManager, UserLoggingInfoProvider $infoProvider, LoggerInterface $logger)[?] method was changed to LoginAttemptsLogSubscriber::__construct(LoginAttemptsHandlerInterface $loginAttemptsHandler)[?]

WorkflowBundle

  • The EventsCompilerPass[?] class was removed.
  • The ResourceFileImportProcessor::__construct(ConfigFileReaderInterface $reader, string $relativeFileResource, array $kernelBundles, $ignoreErrors = false)[?] method was changed to ResourceFileImportProcessor::__construct(ConfigFileReaderInterface $reader, string $relativeFileResource, FileLocatorInterface $fileLocator, $ignoreErrors = false)[?]
  • The ResourceFileImportProcessorFactory::__construct(ConfigFileReaderInterface $reader, array $kernelBundles)[?] method was changed to ResourceFileImportProcessorFactory::__construct(ConfigFileReaderInterface $reader, FileLocatorInterface $fileLocator)[?]
  • The WorkflowFileImportProcessor::__construct(ConfigFileReaderInterface $reader, string $file)[?] method was changed to WorkflowFileImportProcessor::__construct(ConfigFileReaderInterface $reader, string $file, FileLocatorInterface $fileLocator)[?]
  • The WorkflowFileImportProcessorFactory::__construct(ConfigFileReaderInterface $reader)[?] method was changed to WorkflowFileImportProcessorFactory::__construct(ConfigFileReaderInterface $reader, FileLocatorInterface $fileLocator)[?]