Skip to content

Releases: contentful/contentful-core.php

2.2.0

12 Nov 15:49

Choose a tag to compare

Added

  • Interface ApplicationInterface and IntegrationInterface have been added, as well as ClientInterface::useApplication(ApplicationInterface $application) and ClientInterface::useIntegration(IntegrationInterface $integration). The BaseClient class already provides an implementation of these methods.

2.1.1

08 Nov 14:55

Choose a tag to compare

Fixed

  • Method LinkResolverInterface::resolveLinkCollection()'s second parameter was fixed, as it was incorrectly set to string $locale = null instead of array $parameters = [].

2.1.0

07 Nov 15:01

Choose a tag to compare

Added

  • Interface LinkResolverInterface now declares method resolveLinkCollection.

2.0.0

30 Oct 13:29

Choose a tag to compare

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\ImageOptions now has a setPng8Bit method which will force the image to be returned as a 8-bit PNG.
  • Interface Contentful\Core\File\ProcessedFileInterface has been introduced, and can be used to identify assets that have already been processed and have a url property available.
  • The following interfaces have been added: AssetInterface, ContentTypeInterface, EntryInterface, ClientInterface, ResourcePoolInterface.

Changed

  • Class Contentful\Core\Api\BaseClient no longer has abstract method getSdkVersion, now instead it requires getPackageName. The version of the SDK will be inferred automatically using that value.
  • Options array in Contentful\Core\Api\BaseClient::request now uses property host instead of baseUri.
  • Client objects now must declare a request method defined in ClientInterface.
  • ResourceArray now implements ResourceInterface.
  • Logic for querying the API has been refactored into the new Requester class.
  • Client methods getVersion, getPackageName, getSdkName, and getApiContentType are now static. [BREAKING]

2.0.0-beta2

15 Oct 17:14

Choose a tag to compare

Added

  • The following interfaces have been added: AssetInterface, ContentTypeInterface, EntryInterface, ClientInterface, ResourcePoolInterface.

Changed

  • Client objects now must declare a request method defined in ClientInterface.
  • ResourceArray now implements ResourceInterface.
  • Logic for querying the API has been refactored into the new Requester class.
  • Client methods getVersion, getPackageName, getSdkName, and getApiContentType are now static. [BREAKING]

2.0.0-beta1

18 Sep 09:44

Choose a tag to compare

2.0.0-beta1

1.5.0

30 Aug 16:36

Choose a tag to compare

Added

  • Class ObjectHydrator has been introduced, to abstract resource hydration.

1.4.0

29 Aug 10:30

Choose a tag to compare

Added

  • Coding standards are implemented in a generic way so that it can be reused in all SDKs.

1.3.0

28 Aug 17:15

Choose a tag to compare

Added

  • LinkResolverInterface was added to abstract link resolving.

1.2.0

23 Aug 10:10

Choose a tag to compare

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.