Upgrading from 1.4.0 to 2.0.0
Upgrade composer.json
In your composer.json file, upgrade the version of netgen/content-browser
package and all other related packages (like netgen/content-browser-ui,
netgen/content-browser-ibexa and others) to ~2.0.0 and run the
composer update command.
Breaking changes
Minimum supported version of PHP is now 8.4
Minimum supported version of Symfony is now 7.3
Property hooks and asymmetric visibility have been introduced. This means that in
Netgen\ContentBrowser\Item\ItemInterfaceandNetgen\ContentBrowser\Item\LocationInterface, getters have been removed and replaced with properties. Rewrite your item and location objects to use property hooks.Netgen\ContentBrowser\Backend\BackendInterface::searchmethod has been removed in favor ofsearchItemsmethod.Netgen\ContentBrowser\Backend\BackendInterface::searchCountmethod has been removed in favor ofsearchItemsCountmethod.
Deprecations
There were no deprecations in 2.0 version of Netgen Content Browser.