contentful-core.php

Foundation library for Contentful PHP SDKs

MIT License

Downloads
2.4M
Stars
16
Committers
19

Bot releases are hidden (Show)

contentful-core.php -

Published by dborsatto almost 6 years ago

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.
contentful-core.php -

Published by dborsatto almost 6 years ago

Fixed

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

Published by dborsatto almost 6 years ago

Added

  • Interface LinkResolverInterface now declares method resolveLinkCollection.
contentful-core.php -

Published by dborsatto almost 6 years ago

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]
contentful-core.php -

Published by dborsatto about 6 years ago

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]
contentful-core.php -

Published by dborsatto about 6 years ago

contentful-core.php -

Published by dborsatto about 6 years ago

Added

  • Class ObjectHydrator has been introduced, to abstract resource hydration.
contentful-core.php -

Published by dborsatto about 6 years ago

Added

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

Published by dborsatto about 6 years ago

Added

  • LinkResolverInterface was added to abstract link resolving.
contentful-core.php -

Published by dborsatto about 6 years ago

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.
contentful-core.php -

Published by dborsatto over 6 years ago

  • Contentful\Core\Api\Location used to provide a wrongful serialization of the longitude property. Now it correctly serializes to lon instead of long.
  • The Contentful\Core\Log\Timer has been deprecated and will be removed in version 2.
contentful-core.php -

Published by dborsatto over 6 years ago

Added

  • Initial release.
contentful-core.php -

Published by dborsatto over 6 years ago