From Aimeos documentation

< Configuration‎ | Core/client/jsonapi‎ | supplier
Revision as of 16:12, 4 October 2019 by Aimeos (talk | contribs) (1 revision imported)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Excludes decorators added by the "common" option from the JSON API clients

client/jsonapi/supplier/decorators/excludes = Array
  • Default: Array
  • Type: array - List of decorator names
  • Since: 2017.07


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 remove a decorator added via "client/jsonapi/common/decorators/default" before they are wrapped around the JsonApi client.

client/jsonapi/decorators/excludes = array( 'decorator1' )

This would remove the decorator named "decorator1" from the list of common decorators ("\Aimeos\Client\JsonApi\Common\Decorator\*") added via "client/jsonapi/common/decorators/default" for the JSON API client.

See also

How to adapt the configuration: