remove QR generator support for 1.x
This commit is contained in:
parent
47c1f30d7c
commit
3095d8d39b
@ -5,7 +5,6 @@ declare(strict_types=1);
|
|||||||
namespace D3\Totp\Application\Factory;
|
namespace D3\Totp\Application\Factory;
|
||||||
|
|
||||||
use BaconQrCode\Renderer\RendererInterface;
|
use BaconQrCode\Renderer\RendererInterface;
|
||||||
use BaconQrCode\Renderer\Image\Svg; // v1.0.3
|
|
||||||
use BaconQrCode\Renderer\ImageRenderer; // v2.0.0
|
use BaconQrCode\Renderer\ImageRenderer; // v2.0.0
|
||||||
use BaconQrCode\Renderer\Image\SvgImageBackEnd; // v2.0.0
|
use BaconQrCode\Renderer\Image\SvgImageBackEnd; // v2.0.0
|
||||||
use BaconQrCode\Renderer\RendererStyle\RendererStyle; // v2.0.0
|
use BaconQrCode\Renderer\RendererStyle\RendererStyle; // v2.0.0
|
||||||
@ -18,10 +17,6 @@ class BaconQrCodeFactory
|
|||||||
*/
|
*/
|
||||||
public static function renderer($size)
|
public static function renderer($size)
|
||||||
{
|
{
|
||||||
if (class_exists(Svg::class)) {
|
|
||||||
return self::v100($size);
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::v200($size);
|
return self::v200($size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,13 +30,4 @@ class BaconQrCodeFactory
|
|||||||
|
|
||||||
return $renderer;
|
return $renderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function v100($size)
|
|
||||||
{
|
|
||||||
$renderer = oxNew(Svg::class);
|
|
||||||
$renderer->setHeight($size);
|
|
||||||
$renderer->setWidth($size);
|
|
||||||
|
|
||||||
return $renderer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user