File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -121,19 +121,16 @@ public function create(array $data): Creatable
121
121
$ response = $ this ->execute ($ this ->api ->postTokens (), $ data );
122
122
$ token = $ this ->populateFromResponse ($ response );
123
123
124
-
125
- /**
126
- * Cache response as an array to export if needed.
127
- * Added key `id` which is auth token from HTTP header X-Subject-Token
128
- */
124
+ // Cache response as an array to export if needed.
125
+ // Added key `id` which is auth token from HTTP header X-Subject-Token
129
126
$ this ->cachedToken = Utils::flattenJson (Utils::jsonDecode ($ response ), $ this ->resourceKey );
130
127
$ this ->cachedToken ['id ' ] = $ token ->id ;
131
128
132
129
return $ token ;
133
130
}
134
131
135
132
/**
136
- * Retrieves an array serializable representation of authentication token.
133
+ * Returns a serialized representation of an authentication token.
137
134
*
138
135
* Initialize OpenStack object using $params['cachedToken'] to reduce HTTP authentication call.
139
136
*
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ public function authenticate(array $options): array
60
60
* @param array $cachedToken {@see \OpenStack\Identity\v3\Models\Token::export}
61
61
*
62
62
* @return Models\Token
63
- *
64
63
*/
65
64
public function generateTokenFromCache (array $ cachedToken ): Models \Token
66
65
{
You can’t perform that action at this time.
0 commit comments