close

Filter

loading table of contents...

Release Notes / Version 10.2107

Table Of Contents

`CurrentStoreContext` replaces `CurrentCommerceConnection`

The preferred way to obtain a commerce connection is to ask the store context for it via StoreContext#getConnection() if the store context is available in the current scope. If a site object or a content object is available in the current scope, CommerceConnectionInitializer or CommerceConnectionSupplier can be used to obtain a commerce connection instance.

If the store context is not available as a method parameter, the current instance can be obtained via CurrentStoreContext#find() or CurrentStoreContext#get() .

The class CurrentCommerceConnection has been removed.

(CMS-15228)

Search Results

Table Of Contents