Class "BaconQrCode\Renderer\Image\SvgImageBackEnd" not found
it-can opened this issue · 3 comments
it-can commented
The latest version of the package generates this error
Error
Class "BaconQrCode\Renderer\Image\SvgImageBackEnd" not found
at vendor/pragmarx/google2fa-laravel/src/Google2FA.php:32
28▕ protected function constructBackend()
29▕ {
30▕ switch ($this->getQRCodeBackend()) {
31▕ case Constants::QRCODE_IMAGE_BACKEND_SVG:
➜ 32▕ parent::__construct(null, new \BaconQrCode\Renderer\Image\SvgImageBackEnd());
33▕ break;
34▕
35▕ case Constants::QRCODE_IMAGE_BACKEND_EPS:
36▕ parent::__construct(null, new \BaconQrCode\Renderer\Image\EpsImageBackEnd());
+1 vendor frames
2 [internal]:0
PragmaRX\Google2FALaravel\Google2FA::__construct(Object(Illuminate\Http\Request))
+33 vendor frames
36 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan ide-helper:generate handling the ide-helper event returned with error code 1
Script @ide-helper was called via post-update-cmd
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
antonioribeiro commented
I need more information: package version, laravel version, PHP version...
it-can commented
laravel: v8.55.0
php: 8.0.9
package: 2.0
antonioribeiro commented
I tagged a new major version because of, yeah..., breaking changes. So I just tagged 2.0.1 so you won't have that error, but it happened only because you now need to select the proper QRCode rendering service for you, or not.