← All changes
|
includes/sdk/google/google/gax/src/Middleware/CredentialsWrapperMiddleware.php
+9
-6
1.2.0
→
1.4.2
View file →
| @@ -29,22 +29,25 @@ | ||
| 29 | 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 | 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 | 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 | 32 | */ |
| 33 | -namespace Dudlewebs\WPMCS\Google\ApiCore\Middleware; | |
| 33 | +namespace Dudlewebs\WPMCS\GCP\Google\ApiCore\Middleware; | |
| 34 | 34 | |
| 35 | -use Dudlewebs\WPMCS\Google\ApiCore\Call; | |
| 36 | -use Dudlewebs\WPMCS\Google\ApiCore\CredentialsWrapper; | |
| 37 | -use Dudlewebs\WPMCS\GuzzleHttp\Promise\PromiseInterface; | |
| 35 | +use Dudlewebs\WPMCS\GCP\Google\ApiCore\Call; | |
| 36 | +use Dudlewebs\WPMCS\GCP\Google\ApiCore\CredentialsWrapper; | |
| 37 | +use Dudlewebs\WPMCS\GCP\Google\ApiCore\HeaderCredentialsInterface; | |
| 38 | 38 | /** |
| 39 | 39 | * Middleware which adds a CredentialsWrapper object to the call options. |
| 40 | +* | |
| 41 | +* @internal | |
| 40 | 42 | */ |
| 41 | 43 | class CredentialsWrapperMiddleware implements MiddlewareInterface |
| 42 | 44 | { |
| 43 | 45 | /** @var callable */ |
| 44 | 46 | private $nextHandler; |
| 45 | - private CredentialsWrapper $credentialsWrapper; | |
| 46 | - public function __construct(callable $nextHandler, CredentialsWrapper $credentialsWrapper) | |
| 47 | + /** @var HeaderCredentialsInterface */ | |
| 48 | + private HeaderCredentialsInterface $credentialsWrapper; | |
| 49 | + public function __construct(callable $nextHandler, HeaderCredentialsInterface $credentialsWrapper) | |
| 47 | 50 | { |
| 48 | 51 | $this->nextHandler = $nextHandler; |
| 49 | 52 | $this->credentialsWrapper = $credentialsWrapper; |
| 50 | 53 | } |