remove QR generator support for 1.x

This commit is contained in:
Daniel Seifert 2022-09-26 15:56:41 +02:00
parent 47c1f30d7c
commit 3095d8d39b
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace D3\Totp\Application\Factory;
use BaconQrCode\Renderer\RendererInterface;
use BaconQrCode\Renderer\Image\Svg; // v1.0.3
use BaconQrCode\Renderer\ImageRenderer; // v2.0.0
use BaconQrCode\Renderer\Image\SvgImageBackEnd; // v2.0.0
use BaconQrCode\Renderer\RendererStyle\RendererStyle; // v2.0.0
@ -18,10 +17,6 @@ class BaconQrCodeFactory
*/
public static function renderer($size)
{
if (class_exists(Svg::class)) {
return self::v100($size);
}
return self::v200($size);
}
@ -35,13 +30,4 @@ class BaconQrCodeFactory
return $renderer;
}
private static function v100($size)
{
$renderer = oxNew(Svg::class);
$renderer->setHeight($size);
$renderer->setWidth($size);
return $renderer;
}
}