Skip to content

Commit dfa911b

Browse files
committed
Fix issues for basic auth and construct
1 parent 35ac968 commit dfa911b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.3.4] - 2020-11-04
10+
### Fixed
11+
- Fixed method calls for basic auth
12+
913
## [0.3.3] - 2020-10-04
1014
### Fixed
1115
- Remove composer.lock from source code

src/Classes/PdfPrinter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class PdfPrinter implements PdfPrinterInterface {
2525
public String $authType;
2626
public String $authToken;
2727

28-
public function __construct(PdfPrinterSetting $settings = null, \GuzzleHttp\Client $client) {
28+
public function __construct(PdfPrinterSetting $settings = null, \GuzzleHttp\Client $client = null) {
2929
$this->settings = $settings;
3030
$this->client = $client !== null ? $client : new Client();
3131
$this->authType = "";
3232
}
3333

34-
public function authBasic(String $type, String $username, String $password): PdfPrinter {
34+
public function authBasic(String $username, String $password): PdfPrinter {
3535
$this->authType = 'Basic';
3636
$this->authToken = "Basic ".base64_encode("${username}:${password}");
3737
return $this;

0 commit comments

Comments
 (0)