Skip to content

4.0.0

Choose a tag to compare

@rootpd rootpd released this 03 Apr 10:13
· 14 commits to master since this release
  • BREAKING: Removed classes and methods that were deprecated in version 1.0.0.
    • Removed class \Crm\ApiModule\Models\Response\JsonResponse. Use \Tomaj\NetteApi\Response\JsonApiResponse instead.
    • Removed class \Crm\ApiModule\Models\Response\XmlResponse. Use \Tomaj\NetteApi\Response\XmlApiResponse instead.
    • Removed class \Crm\ApiModule\Models\Response\RedirectResponse. Use \Tomaj\NetteApi\Response\RedirectResponse or \Nette\Application\Responses\RedirectResponse instead.
    • Removed interface \Crm\ApiModule\Models\Params\ParamInterface. Use \Tomaj\NetteApi\Params\ParamInterface instead (if needed; ApiModule doesn't use it).
    • Removed methods getHttpCode() and setHttpCode() from \Crm\ApiModule\Models\Response\ApiResponseInterface. Use getCode() and setCode() instead.
    • Removed methods getCategory(), getApiCall() and getApiPath() from \Crm\ApiModule\Models\Router\ApiIdentifier. Use getPackage(), getApiAction() and getUrl() instead.
      • IMPORTANT: Constructor parameter category of ApiIdentifier renamed to package.
    • Removed method hasError() from \Crm\ApiModule\Models\Params\ParamsProcessor. Use isError() to check if any error is present and getErrors() to get all errors raised while validating input API parameters.
      • Method isError() was removed also; use parent method isError(). It was present just for comment with explanation not needed anymore.
    • Removed class \Crm\ApiModule\Models\Params\ParamsProcessor. Use \Tomaj\NetteApi\Params\ParamsProcessor instead.
      • After previous change (removal of hasError()), this change should be simple switch of classes in import.
    • Note: There is Rector rule for some of these changes. Check https://github.com/remp2020/crm-rector/releases/tag/3.0.0.