All notable changes to cybercog/youtrack-rest-php will be documented in this file.
array type to $options argument of buildOptions method of Cog\YouTrack\Rest\Client\YouTrackClientCog\YouTrack\Rest\Client\YouTrackClient endpoint prefix is relative now (#39)Cog\YouTrack\Rest\Authorizer\CookieAuthorizer stopped to delegate client header manipulation to Authenticator (#32)token method added to Cog\Contracts\YouTrack\Rest\Authenticator\Authenticator contractCog\Contracts\YouTrack\Rest\Client\Exceptions\ClientException extends RuntimeException instead of ExceptionCog\Contracts\YouTrack\Rest\Client\Exceptions\HttpClientException extends RuntimeException instead of ExceptionCog\Contracts\YouTrack\Rest\Authorizer\Exceptions\InvalidTokenException renamed to InvalidAuthorizationTokenputHeader method from Cog\Contracts\YouTrack\Rest\Client\Client contractCog\Contracts\YouTrack namespace (#34).Cog\Contracts\YouTrack package (#32).Cog\YouTrack\Rest\Authenticator\Contracts moved to Cog\Contracts\YouTrack\Rest\AuthenticatorCog\YouTrack\Rest\Authorizer\Contracts moved to Cog\Contracts\YouTrack\Rest\AuthorizerCog\YouTrack\Rest\Client\Contracts moved to Cog\Contracts\YouTrack\Rest\ClientCog\YouTrack\Rest\Client\HttpContracts moved to Cog\Contracts\YouTrack\Rest\HttpClientCog\YouTrack\Rest\Client\Response moved to Cog\Contracts\YouTrack\Rest\ResponsewithHeader, withHeaders methods to Client contract.isClientError & isServerError asserts in Response contract.putHeader method marked as deprecated to keep naming consistency and aliased to withHeader.isSuccess & isReponse asserts to Response contract.header & body methods to Response contract.Authenticator contract and CookieAuthenticator implementation.HttpClient contract and GuzzleHttpClient implementation.isStatusCode assert to Response contract.CookieAuthorizer constructor accepts Authenticator instead of credentials.TokenAuthorizer constructor accepts string token instead of array.Authorizer delegates authentication to Authenticator.Client delegates HTTP requests to HttpClient.AuthenticationException.getHeaders method was dropped from Authorizer contract.Response interface methods getResponse, getStatusCode, getCookie, getLocation were renamed to httpResponse, statusCode, cookie, location respectively.User-Agent header is more verbose.Client contract instead of each concrete implementation.$options was added to Client methods: request, get, post, put, delete.getAuthorizer & setAuthorizer rudiment methods.