Releases: cybercog/youtrack-rest-php
Releases · cybercog/youtrack-rest-php
6.0.1
Changed
- Package display name updated from
YouTrack REST PHP
toPHP YouTrack REST
. Doesn't affect on code in any way.
6.0.0
Changed
Cog\YouTrack\Rest\Authorizer\CookieAuthorizer
stopped to delegate client header manipulation toAuthenticator
(#32)token
method added toCog\Contracts\YouTrack\Rest\Authenticator\Authenticator
contractCog\Contracts\YouTrack\Rest\Client\Exceptions\ClientException
extendsRuntimeException
instead ofException
Cog\Contracts\YouTrack\Rest\Client\Exceptions\HttpClientException
extendsRuntimeException
instead ofException
Cog\Contracts\YouTrack\Rest\Authorizer\Exceptions\InvalidTokenException
renamed toInvalidAuthorizationToken
Removed
- Dropped
putHeader
method fromCog\Contracts\YouTrack\Rest\Client\Client
contract
5.0.0
Changed
- Exceptions moved to
Cog\Contracts\YouTrack
namespace (#34).
4.0.0
Changed
- Contracts extracted to
Cog\Contracts\YouTrack
package (#32)Cog\YouTrack\Rest\Authenticator\Contracts
moved toCog\Contracts\YouTrack\Rest\Authenticator
Cog\YouTrack\Rest\Authorizer\Contracts
moved toCog\Contracts\YouTrack\Rest\Authorizer
Cog\YouTrack\Rest\Client\Contracts
moved toCog\Contracts\YouTrack\Rest\Client
Cog\YouTrack\Rest\Client\HttpContracts
moved toCog\Contracts\YouTrack\Rest\HttpClient
Cog\YouTrack\Rest\Client\Response
moved toCog\Contracts\YouTrack\Rest\Response
3.2.0
Changed
withHeader
,withHeaders
methods toClient
contract.isClientError
&isServerError
asserts inResponse
contract.
Updated
putHeader
method marked as deprecated to keep naming consistency and aliased towithHeader
.
3.1.1
3.1.0
Added
isSuccess
&isReponse
asserts inResponse
contract.header
&body
methods toResponse
contract.
3.0.0
Added
Authenticator
contract andCookieAuthenticator
implementation.HttpClient
contract andGuzzleHttpClient
implementation.isStatusCode
assert inResponse
contract.
Updated
CookieAuthorizer
constructor acceptsAuthenticator
instead of credentials.TokenAuthorizer
constructor accepts string token instead of array.Authorizer
delegates authentication toAuthenticator
.Client
delegates HTTP requests toHttpClient
.- Changed namespace of
AuthenticationException
. getHeaders
method was dropped fromAuthorizer
contract.Response
interface methodsgetResponse
,getStatusCode
,getCookie
,getLocation
were renamed tohttpResponse
,statusCode
,cookie
,location
respectively.User-Agent
header is more verbose.- REST Client version is defined in
Client
contract instead of each concrete implementation. - Additional param
$options
was added toClient
methods:request
,get
,post
,put
,delete
.
2.0.1
2.0.0
Updated
- Dropped Client
getAuthorizer
&setAuthorizer
rudiment methods.