dkd / php-cmis-client

This is a PHP CMIS Client implementation based on OpenCMIS. It has been retired and put in to archive mode.
Apache License 2.0
54 stars 35 forks source link

Introduce read/post JSON returning wrappers #46

Closed NamelessCoder closed 7 years ago

NamelessCoder commented 7 years ago

Methods currently call read() or post() which returns a Response - however, almost all methods do not care about the response but always want JSON data.

Previously, Guzzle allowed chaing a ->json call on a Response to get decoded JSON as array but this is no longer possible, so these methods are introduced to again cut down the code duplication in Response parsing.