mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-31 12:37:20 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d70f9ca8e |
@@ -33,6 +33,9 @@ class EndroidQrCodeWithLogoProvider extends EndroidQrCodeProvider
|
|||||||
|
|
||||||
$logo = null;
|
$logo = null;
|
||||||
if ($this->logoPath) {
|
if ($this->logoPath) {
|
||||||
|
if ($this->endroid6) {
|
||||||
|
$logo = new Logo($this->logoPath, ...$this->logoSize);
|
||||||
|
} else {
|
||||||
$logo = Logo::create($this->logoPath);
|
$logo = Logo::create($this->logoPath);
|
||||||
if ($this->logoSize) {
|
if ($this->logoSize) {
|
||||||
$logo->setResizeToWidth($this->logoSize[0]);
|
$logo->setResizeToWidth($this->logoSize[0]);
|
||||||
@@ -41,6 +44,7 @@ class EndroidQrCodeWithLogoProvider extends EndroidQrCodeProvider
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$writer = new PngWriter();
|
$writer = new PngWriter();
|
||||||
return $writer->write($this->qrCodeInstance($qrText, $size), $logo)->getString();
|
return $writer->write($this->qrCodeInstance($qrText, $size), $logo)->getString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user