Configuration/Core/client/jsonapi/supplier/decorators/global

From Aimeos documentation

< Configuration‎ | Core/client/jsonapi‎ | supplier

Summary

Adds a list of globally available decorators only to the JsonApi client

client/jsonapi/supplier/decorators/global = 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 global decorators ("\Aimeos\Client\JsonApi\Common\Decorator\*") around the JsonApi client.

client/jsonapi/supplier/decorators/global = array( 'decorator1' )

This would add the decorator named "decorator1" defined by "\Aimeos\Client\JsonApi\Common\Decorator\Decorator1" only to the "supplier" JsonApi client.

See also

How to adapt the configuration: