Release Notes / Version 10.2101
Table Of Contents
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)