File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/IPub/JsonAPIClient/Clients Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,16 @@ public function addAuthorization(string $token) : void
169
169
$ this ->addHeader ('Authorization ' , 'Bearer ' . $ token );
170
170
}
171
171
172
+ /**
173
+ * {@inheritdoc}
174
+ */
175
+ public function removeAuthorization () : void
176
+ {
177
+ if (isset ($ this ->headers ['Authorization ' ])) {
178
+ unset($ this ->headers ['Authorization ' ]);
179
+ }
180
+ }
181
+
172
182
/**
173
183
* {@inheritdoc}
174
184
*/
Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ public function addApiKey(string $key) : void;
104
104
*/
105
105
public function addAuthorization (string $ token ) : void ;
106
106
107
+ /**
108
+ * @return void
109
+ */
110
+ public function removeAuthorization () : void ;
111
+
107
112
/**
108
113
* @param string $header
109
114
* @param string $value
You can’t perform that action at this time.
0 commit comments