Difference between revisions of "Configuration/Core/client/jsonapi/subscription/decorators/local"

From Aimeos documentation

< Configuration‎ | Core/client/jsonapi‎ | subscription
(Generated by MShopConfigDocTask)
m (1 revision imported)
 
(No difference)

Latest revision as of 15:12, 4 October 2019

Summary

Adds a list of local decorators only to the JsonApi client

client/jsonapi/subscription/decorators/local = Array
(
)
  • Default: Array
  • Type: array - List of decorator names
  • Since: 2017.07

Description

Decorators extend the functionality of a class by adding new aspects (e.g. log what is currently done), executing the methods of the underlying class only in certain conditions (e.g. only for logged in users) or modify what is returned to the caller.

This option allows you to wrap local decorators ("\Aimeos\Client\JsonApi\Subscription\Decorator\*") around the JsonApi client.

client/jsonapi/subscription/decorators/local = array( 'decorator2' )

This would add the decorator named "decorator2" defined by "\Aimeos\Client\JsonApi\Subscription\Decorator\Decorator2" only to the "subscription" JsonApi client.

See also

How to adapt the configuration: