From fb2c574b64f49f9aa545430a0ea8bc078a6f46e2 Mon Sep 17 00:00:00 2001 From: codemasher Date: Wed, 19 Sep 2018 14:58:33 +0200 Subject: [PATCH] :fire: --- examples/MyAuthenticatorClass.php | 33 ------------------------------- examples/authenticator.php | 17 ---------------- 2 files changed, 50 deletions(-) delete mode 100644 examples/MyAuthenticatorClass.php delete mode 100644 examples/authenticator.php diff --git a/examples/MyAuthenticatorClass.php b/examples/MyAuthenticatorClass.php deleted file mode 100644 index 8e4ea12e5..000000000 --- a/examples/MyAuthenticatorClass.php +++ /dev/null @@ -1,33 +0,0 @@ - - * @copyright 2017 Smiley - * @license MIT - */ - -namespace chillerlan\QRCodeExamples; - -use chillerlan\QRCode\{QRCode, QROptions, Traits\QRAuthenticator}; - -/** - * using the QRAuthenticator trait - */ -class MyAuthenticatorClass{ - use QRAuthenticator; - - public function getQRCode(){ - // data fetched from wherever - $this->authenticatorSecret = 'SECRETTEST234567'; - $this->qrOptions = new QROptions(['outputType' => QRCode::OUTPUT_MARKUP_SVG]); // set options if needed - $label = 'my label'; - $issuer = 'example.com'; - - return $this->getURIQRCode($label, $issuer); - } - -} diff --git a/examples/authenticator.php b/examples/authenticator.php deleted file mode 100644 index 544a52cc4..000000000 --- a/examples/authenticator.php +++ /dev/null @@ -1,17 +0,0 @@ - - * @copyright 2017 Smiley - * @license MIT - */ - -namespace chillerlan\QRCodeExamples; - -require_once '../vendor/autoload.php'; - -header('Content-type: image/svg+xml'); - -echo (new MyAuthenticatorClass)->getQRCode();