Bump bacon/bacon-qr-code to 2.0.4

This commit is contained in:
Philipp 2021-12-10 23:42:30 +01:00
parent 7fe7f893df
commit 95fbe45bcc
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 62 additions and 15 deletions

View file

@ -27,7 +27,7 @@
"ext-simplexml": "*", "ext-simplexml": "*",
"ext-xml": "*", "ext-xml": "*",
"asika/simple-console": "^1.0", "asika/simple-console": "^1.0",
"bacon/bacon-qr-code": "^1.0", "bacon/bacon-qr-code": "^2.0.0",
"divineomega/password_exposed": "^2.8", "divineomega/password_exposed": "^2.8",
"ezyang/htmlpurifier": "^4.7", "ezyang/htmlpurifier": "^4.7",
"friendica/json-ld": "^1.0", "friendica/json-ld": "^1.0",

68
composer.lock generated
View file

@ -41,32 +41,35 @@
}, },
{ {
"name": "bacon/bacon-qr-code", "name": "bacon/bacon-qr-code",
"version": "1.0.3", "version": "2.0.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Bacon/BaconQrCode.git", "url": "https://github.com/Bacon/BaconQrCode.git",
"reference": "5a91b62b9d37cee635bbf8d553f4546057250bee" "reference": "f73543ac4e1def05f1a70bcd1525c8a157a1ad09"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/5a91b62b9d37cee635bbf8d553f4546057250bee", "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/f73543ac4e1def05f1a70bcd1525c8a157a1ad09",
"reference": "5a91b62b9d37cee635bbf8d553f4546057250bee", "reference": "f73543ac4e1def05f1a70bcd1525c8a157a1ad09",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"dasprid/enum": "^1.0.3",
"ext-iconv": "*", "ext-iconv": "*",
"php": "^5.4|^7.0" "php": "^7.1 || ^8.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8" "phly/keep-a-changelog": "^1.4",
"phpunit/phpunit": "^7 | ^8 | ^9",
"squizlabs/php_codesniffer": "^3.4"
}, },
"suggest": { "suggest": {
"ext-gd": "to generate QR code images" "ext-imagick": "to generate QR code images"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-4": {
"BaconQrCode": "src/" "BaconQrCode\\": "src/"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -77,13 +80,13 @@
{ {
"name": "Ben Scholzen 'DASPRiD'", "name": "Ben Scholzen 'DASPRiD'",
"email": "mail@dasprids.de", "email": "mail@dasprids.de",
"homepage": "http://www.dasprids.de", "homepage": "https://dasprids.de/",
"role": "Developer" "role": "Developer"
} }
], ],
"description": "BaconQrCode is a QR code generator for PHP.", "description": "BaconQrCode is a QR code generator for PHP.",
"homepage": "https://github.com/Bacon/BaconQrCode", "homepage": "https://github.com/Bacon/BaconQrCode",
"time": "2017-10-17T09:59:25+00:00" "time": "2021-06-18T13:26:35+00:00"
}, },
{ {
"name": "bower-asset/Chart-js", "name": "bower-asset/Chart-js",
@ -380,6 +383,49 @@
], ],
"time": "2021-10-28T20:44:15+00:00" "time": "2021-10-28T20:44:15+00:00"
}, },
{
"name": "dasprid/enum",
"version": "1.0.3",
"source": {
"type": "git",
"url": "https://github.com/DASPRiD/Enum.git",
"reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/DASPRiD/Enum/zipball/5abf82f213618696dda8e3bf6f64dd042d8542b2",
"reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2",
"shasum": ""
},
"require-dev": {
"phpunit/phpunit": "^7 | ^8 | ^9",
"squizlabs/php_codesniffer": "^3.4"
},
"type": "library",
"autoload": {
"psr-4": {
"DASPRiD\\Enum\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Ben Scholzen 'DASPRiD'",
"email": "mail@dasprids.de",
"homepage": "https://dasprids.de/",
"role": "Developer"
}
],
"description": "PHP 7.1 enum implementation",
"keywords": [
"enum",
"map"
],
"time": "2020-10-02T16:03:48+00:00"
},
{ {
"name": "divineomega/do-file-cache", "name": "divineomega/do-file-cache",
"version": "v2.0.6", "version": "v2.0.6",

View file

@ -110,9 +110,10 @@ class Verify extends BaseSettings
$otpauthUrl = (new Google2FA())->getQRCodeUrl($company, $holder, $secret); $otpauthUrl = (new Google2FA())->getQRCodeUrl($company, $holder, $secret);
$renderer = (new \BaconQrCode\Renderer\Image\Svg()) $renderer = new ImageRenderer(
->setHeight(256) new RendererStyle(256),
->setWidth(256); new SvgImageBackEnd()
);
$writer = new Writer($renderer); $writer = new Writer($renderer);