This commit is contained in:
smiley
2023-03-15 19:55:59 +01:00
parent f29cd763d8
commit f13300c304
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -71,6 +71,8 @@ class MyCustomOutput extends QROutputAbstract{
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
// invoke the QROutputInterface manually
// please note that an QROutputInterface invoked this way might become unusable after calling dump().
// the clean way would be to extend the QRCode class to ensure a new QROutputInterface instance on each call to render().
$options = new QROptions([
'version' => 5,
'eccLevel' => EccLevel::L,
+2 -2
View File
@@ -58,8 +58,8 @@ abstract class QROutputAbstract implements QROutputInterface{
* QROutputAbstract constructor.
*/
public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){
$this->options = $options;
$this->matrix = $matrix;
$this->options = $options;
$this->matrix = $matrix;
$this->setMatrixDimensions();
$this->setModuleValues();