* * 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()]); } }