Difference between global and local decorators

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Difference between global and local decorators

Post by krzysiekp » 19 Nov 2021, 08:26

What is the difference between global and local decorators ?

User avatar
aimeos
Administrator
Posts: 8356
Joined: 01 Jan 1970, 00:00

Re: Difference between global and local decorators

Post by aimeos » 19 Nov 2021, 10:11

Global decorators work for all managers, controllers and clients which implements the common interface.
Local decorators will only work with the manager, controller and client that implements the same interface.

Examples:
Global HTML client decorator can be used with any HTML client, e.g. account/history, catalog/detail, checkout/standard, etc.
Local HTML client decorator can be only used for the HTML client it's written for, e.g. catalog/detail
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply