diff --git a/README.md b/README.md index 6932128..200ab07 100644 --- a/README.md +++ b/README.md @@ -72,9 +72,6 @@ echo $qrCode->writeString(); // Save it to a file $qrCode->writeFile(__DIR__.'/qrcode.png'); -// Create a response object -$response = new QrCodeResponse($qrCode); - // Generate a data URI to include image data inline (i.e. inside an tag) $dataUri = $qrCode->writeDataUri(); ``` diff --git a/composer.json b/composer.json index 1d672d7..0befa27 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,6 @@ "ext-gd": "*", "bacon/bacon-qr-code": "^2.0", "khanamiryan/qrcode-detector-decoder": "^1.0.2", - "symfony/http-foundation": "^3.4||^4.4||^5.0", "symfony/options-resolver": "^3.4||^4.4||^5.0", "symfony/property-access": "^3.4||^4.4||^5.0", "myclabs/php-enum": "^1.5" diff --git a/src/Response/QrCodeResponse.php b/src/Response/QrCodeResponse.php deleted file mode 100644 index 8540998..0000000 --- a/src/Response/QrCodeResponse.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - -namespace Endroid\QrCode\Response; - -use Endroid\QrCode\QrCodeInterface; -use Symfony\Component\HttpFoundation\Response; - -class QrCodeResponse extends Response -{ - public function __construct(QrCodeInterface $qrCode) - { - parent::__construct($qrCode->writeString(), Response::HTTP_OK, ['Content-Type' => $qrCode->getContentType()]); - } -}