Swap endroid/qr-code-bundle dependency with endroid/qr-code

Created on 10 December 2024, 12 days ago

Problem/Motivation

This module has a dependency on the endroid/qr-code-bundle package, which pulls in the following dependencies:

  • endroid/installer (a Composer plugin that causes the annoying, interactive message 'Do you trust "endroid/installer" to execute code and wish to enable it now?'' during composer i)
  • endroid/qr-code
  • symfony/framework-bundle
  • symfony/twig-bundle
  • symfony/yaml

The only class from the endroid/qr-code-bundle this module uses is QrCodeResponse, and this is a simple wrapper around QrCodeInterface::writeString(), which means that the only package we actually need is endroid/qr-code.

Proposed resolution

  • Replace the usage of QrCodeResponse with QrCodeInterface::writeString()
  • Replace the dependency on endroid/qr-code-bundle with endroid/qr-code
📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024