Upgrading from 0.13.0 to 1.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-ezplatform and others) to ~1.0.0 and run the
composer update command.
Breaking changes
Minimum supported version of PHP is now 7.2
Minimum supported version of Symfony is now 3.4.24 or 4.3
Interfaces for registries have been removed. Typehint against the concrete registry implementations.
Names of the CSS and JavaScript assets have been changed:
Before:
{{ asset('netgen-content-browser.css', 'ngcb_css') }} {{ asset('netgen-content-browser.js', 'ngcb_js') }}
After:
{{ asset('main.css', 'ngcb_css') }} {{ asset('main.js', 'ngcb_js') }}
CSS class
js-config-namein HTML markup has been renamed tojs-item-type. If you have any custom code that calls the content browser (e.g. overridden form type templates or code that calls the browser directly), update the CSS class name to the new value.Virtual services
netgen_content_browser.current_backendandnetgen_content_browser.current_confighave been renamed tonetgen_content_browser.backendandnetgen_content_browser.configrespectively.
eZ Platform specific breaking changes
Minimum supported version of eZ Platform is now 2.5 or 3.0
All container parameters that had
ezpublishas part of their names have been renamed toezplatforminstead.Container parameters that allow specifying the item, preview and thumbnail templates have been renamed to remove
default_part of their name.Old name
New name
netgen_content_browser.ezpublish.default_item_templatenetgen_content_browser.ezplatform.item_templatenetgen_content_browser.ezpublish.default_preview_templatenetgen_content_browser.ezplatform.preview_templatenetgen_content_browser.ezpublish.default_thumbnail_templatenetgen_content_browser.ezplatform.thumbnail_templatenetgen_content_browser.eztags.default_item_templatenetgen_content_browser.eztags.item_templateAll services that had
EzPublishas part of their FQCN have been renamed toEzPlatforminstead.All services that had
ezpublishas part of their service name have been renamed toezplatforminstead.Identifiers of column value providers have been renamed from having the
ezpublish\prefix to having theezplatform\prefix. This also includes the related translations, which have been renamed fromcolumns.ezpublish.prefix tocolumns.ezplatform.prefix.