Skip to content

Commit 29a7cdb

Browse files
committed
Cleanup
1 parent 3793cd9 commit 29a7cdb

13 files changed

+24
-23
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ install:
88
- composer install
99

1010
script:
11-
- ./vendor/bin/phpunit -c ./phpunit.xml --coverage-text
11+
- ./vendor/bin/phpunit -c ./phpunit.xml --coverage-text

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
guzzle-oauth2-plugin
22
====================
33

4-
Provides an OAuth2 plugin for [Guzzle](http://guzzlephp.org/).
4+
Provides an OAuth2 plugin (subscriber) for [Guzzle](http://guzzlephp.org/).
55

66
[![Build Status](https://travis-ci.org/commerceguys/guzzle-oauth2-plugin.svg)](https://travis-ci.org/commerceguys/guzzle-oauth2-plugin)
77

8-
The `master` branch is intended for Guzzle 5:
8+
Version 2.x (on the `master` branch) is intended for Guzzle 5:
99
```json
10-
"commerceguys/guzzle-oauth2-plugin": "dev-master"
10+
"commerceguys/guzzle-oauth2-plugin": "~2.0"
1111
```
1212

1313
Guzzle 3 compatibility continues in the [`1.0`](https://github.com/commerceguys/guzzle-oauth2-plugin/tree/1.0) branch:
@@ -52,12 +52,11 @@ $client = new Client([
5252
],
5353
]);
5454

55-
/** @var \GuzzleHttp\Message\Response */
5655
$response = $client->get('https://example.com/api/user/me');
5756

5857
print_r($response->json());
5958

60-
// Use $oauth2->getAccessToken(); to get a token that can be persisted for
61-
// subsequent requests.
59+
// Use $oauth2->getAccessToken(); and $oauth2->getRefreshToken() to get tokens
60+
// that can be persisted for subsequent requests.
6261

6362
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commerceguys/guzzle-oauth2-plugin",
3-
"description": "An OAuth2 plugin for Guzzle 5.x",
3+
"description": "An OAuth2 plugin (subscriber) for Guzzle 5.x",
44
"license": "MIT",
55
"require": {
66
"guzzlehttp/guzzle": "~5.0"

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AccessToken.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class AccessToken
2121

2222
/**
2323
* @param string $token
24-
* @param string $type The token type (from OAuth2 key 'token_type').
25-
* @param array $data Other token data.
24+
* @param string $type The token type (from OAuth2 key 'token_type').
25+
* @param array $data Other token data.
2626
*/
2727
public function __construct($token, $type, array $data = [])
2828
{

src/GrantType/AuthorizationCode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/**
66
* Authorization code grant type.
7+
*
78
* @link http://tools.ietf.org/html/rfc6749#section-4.1
89
*/
910
class AuthorizationCode extends GrantTypeBase

src/GrantType/ClientCredentials.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/**
66
* Client credentials grant type.
7+
*
78
* @link http://tools.ietf.org/html/rfc6749#section-4.4
89
*/
910
class ClientCredentials extends GrantTypeBase

src/GrantType/GrantTypeBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace CommerceGuys\Guzzle\Oauth2\GrantType;
44

55
use CommerceGuys\Guzzle\Oauth2\AccessToken;
6-
use GuzzleHttp\Collection;
76
use GuzzleHttp\ClientInterface;
7+
use GuzzleHttp\Collection;
88

99
abstract class GrantTypeBase implements GrantTypeInterface
1010
{

src/GrantType/PasswordCredentials.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/**
66
* Resource owner password credentials grant type.
7+
*
78
* @link http://tools.ietf.org/html/rfc6749#section-4.3
89
*/
910
class PasswordCredentials extends GrantTypeBase

src/GrantType/RefreshToken.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/**
66
* Refresh token grant type.
7+
*
78
* @link http://tools.ietf.org/html/rfc6749#section-6
89
*/
910
class RefreshToken extends GrantTypeBase implements RefreshTokenGrantTypeInterface

0 commit comments

Comments
 (0)