Releases: contentful/contentful-core.php
Releases · contentful/contentful-core.php
2.2.0
Added
- Interface
ApplicationInterfaceandIntegrationInterfacehave been added, as well asClientInterface::useApplication(ApplicationInterface $application)andClientInterface::useIntegration(IntegrationInterface $integration). TheBaseClientclass already provides an implementation of these methods.
2.1.1
2.1.0
2.0.0
ATTENTION: This release contains breaking changes. Please take extra care when updating to this version. See the upgrade guide for more.
Added
- Class
Contentful\Core\File\ImageOptionsnow has asetPng8Bitmethod which will force the image to be returned as a 8-bit PNG. - Interface
Contentful\Core\File\ProcessedFileInterfacehas been introduced, and can be used to identify assets that have already been processed and have aurlproperty available. - The following interfaces have been added:
AssetInterface,ContentTypeInterface,EntryInterface,ClientInterface,ResourcePoolInterface.
Changed
- Class
Contentful\Core\Api\BaseClientno longer has abstract methodgetSdkVersion, now instead it requiresgetPackageName. The version of the SDK will be inferred automatically using that value. - Options array in
Contentful\Core\Api\BaseClient::requestnow uses propertyhostinstead ofbaseUri. - Client objects now must declare a
requestmethod defined inClientInterface. ResourceArraynow implementsResourceInterface.- Logic for querying the API has been refactored into the new
Requesterclass. - Client methods
getVersion,getPackageName,getSdkName, andgetApiContentTypeare now static. [BREAKING]
2.0.0-beta2
Added
- The following interfaces have been added:
AssetInterface,ContentTypeInterface,EntryInterface,ClientInterface,ResourcePoolInterface.
Changed
- Client objects now must declare a
requestmethod defined inClientInterface. ResourceArraynow implementsResourceInterface.- Logic for querying the API has been refactored into the new
Requesterclass. - Client methods
getVersion,getPackageName,getSdkName, andgetApiContentTypeare now static. [BREAKING]
2.0.0-beta1
2.0.0-beta1
1.5.0
1.4.0
1.3.0
1.2.0
Changed
- The client used to create a log entry with a full message by default. Now it will create one regular entry with either level "INFO" or "ERROR" depending on the status code of the response, and one with level "DEBUG" with full dumps of request, response, and exception.