Upgrading from 0.11.0 to 0.12.0
Upgrade composer.json
In your composer.json file, upgrade the version of netgen/content-browser
package to ~0.12.0 and run the composer update command.
Breaking changes
Minimum required version of PHP is now 7.1
Scalar and return typehints have been added throughout the codebase. You will need to update your custom code to match the typehints from Netgen Content Browser.
Netgen\Bundle\CoreUIBundle\NetgenCoreUIBundlebundle has been removed. Remove it from your kernel class.Form named
item_idinContentBrowserDynamicTypehas been renamed toitem_value. Update your code using this type to use the new name.Netgen\ContentBrowser\Backend\BackendInterface::getDefaultSectionsmethod has been renamed togetSections. Update your custom backends to use the new method name.Netgen\ContentBrowser\Config\ConfigurationInterfacehas been removed. Typehint againstNetgen\ContentBrowser\Config\Configurationclass directly in your custom backends.Block prefixes for Symfony forms have been renamed. The following table lists the old names and the new names. If you used custom form themes to change the look of Content Browser forms, update the Twig block names to use the new block prefixes.
Old block prefix
New block prefix
ng_content_browserngcbng_content_browser_dynamicngcb_dynamicng_content_browser_multiplengcb_multiple