mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-13 23:36:06 +00:00
✨ optional file saving through QROutputInterface::dump()
This commit is contained in:
+4
-3
@@ -114,12 +114,13 @@ class QRCode{
|
||||
/**
|
||||
* Renders a QR Code for the given $data and QROptions
|
||||
*
|
||||
* @param string $data
|
||||
* @param string $data
|
||||
* @param string|null $file
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function render(string $data){
|
||||
return $this->initOutputInterface($data)->dump();
|
||||
public function render(string $data, string $file = null){
|
||||
return $this->initOutputInterface($data)->dump($file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user