You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.