Changes: 2.8.2...3.0.0
Changelog: 3.0.0 Release
This file is irrelevant for you in case you do not have a plugin extension.
This file should help you upgrade from 2.x to 3.x, by providing you with
information that you are going to need, in case you have an extension plugin that
overrides or implements any classes of the main plugin.
Information about private methods won't be preserved.
Methods, properties, method arguments, etc. that have previously been marked as @deprecated
have been removed, updated or replaced.
The classes relevant to the old export logic are now deprecated and will be removed in v4.0
FINDOLOGIC\FinSearch\Export\FindologicProductFactory
- Class and service declaration will be removed
FINDOLOGIC\FinSearch\Export\ProductService
- Class and service declaration will be removed
FINDOLOGIC\FinSearch\Struct\FindologicProduct
- Class will be removed
FINDOLOGIC\FinSearch\Controller\ExportController
- Added new member variables
$eventDispatcher
,$customerGroupRepository
,$exportContext
and$productSearcher
- Removed member variable
$pluginConfig
- Update the export logic to use our new export services
- Implemented a logic, to still use the legacy export, when an outdated extension is installed
- Added new member variables
FINDOLOGIC\FinSearch\Export\Export
- The signature of method
getInstance()
has received the argumentEventDispatcherInterface $eventDispatcher
- The signature of method
buildItems()
has been updated toExport::buildItems(array $productEntities): array
- The signature of method
FINDOLOGIC\FinSearch\Export\ProductIdExport
- The signature of the constructor has received the argument
EventDispatcherInterface $eventDispatcher
- The signature of method
buildItems()
has been updated toProductIdExport::buildItems(array $productEntities): array
- The signature of the constructor has received the argument
FINDOLOGIC\FinSearch\Export\ProductImageService
- The signature of method
getProductImages()
has been updated toProductImageService::getProductImages(ProductEntity $product, bool $considerVariants = true): array
- The signature of method
FINDOLOGIC\FinSearch\Export\ProductService
- Method
addProductAssociations
now includes child associations separately
- Method
FINDOLOGIC\FinSearch\Export\XmlExport
- Added new member variables
$exportItemAdapter
,$productSearcher
and$eventDispatcher
- The signature of the constructor has received the argument
EventDispatcherInterface $eventDispatcher
- The signature of method
buildItems()
has been updated toXmlExport::buildItems(array $productEntities): array
- Changed
buildItems()
tobuildItemsLegacy()
- Changed
exportSingleItem()
toexportSingleItemLegacy()
buildItems()
now uses the new adapter logic and fetches the variants paginated
- Added new member variables
FINDOLOGIC\FinSearch\Utils\Utils
- Child associations of
addProductAssociations()
were moved toaddChildrenAssociations()
- Split up
addProductAssociations()
inaddProductAssociations()
andaddVariantAssociations
- Child associations of
- Introduced adapter services at
FINDOLOGIC\FinSearch\Export\Adapters
- Adapter classes were created for each type of data (name, summary, properties, attributes etc.)
- Each of the classes is ignoring any kind of children data of the provided product
- The adapter services are called for each variant separately
- The whole export logic from
FINDOLOGIC\FinSearch\Struct\FindologicProduct
was split into the relevant adapters
- Introduced events at
FINDOLOGIC\FinSearch\Export\Events
- Manipulate the product data in one of the five new events. Before/after adapting a product/variant, or when the item was built successfully.
FINDOLOGIC\FinSearch\Export\ExportContext
includes the relevant information needed across the exportFINDOLOGIC\FinSearch\Export\Search\ProductCriteriaBuilder
- Responsible to build the criteria for
FINDOLOGIC\FinSearch\Export\Search\ProductSearcher
- Replaces the criteria building from
FINDOLOGIC\FinSearch\Export\ProductService
- Responsible to build the criteria for
FINDOLOGIC\FinSearch\Export\Search\ProductSearcher
- Responsible for fetching the products from the database
- Replaces the old
FINDOLOGIC\FinSearch\Export\ProductService