mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-18 03:33:23 +00:00
🚿
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user