public function generateAction()
    {
        $extension  = $this->params()->fromRoute('extension', QrCodeServiceInterface::DEFAULT_EXTENSION);
        $content    = $this->qrCodeService->getQrCodeContent($this->params());
        return $this->createResponse($content, $this->qrCodeService->generateContentType($extension));
    }
public function generateAction()
    {
        $extension  = $this->params()->fromRoute('extension', QrCodeServiceInterface::DEFAULT_EXTENSION);
        $content    = $this->qrCodeService->getQrCodeContent($this->params());
        return $this->createResponse($content, $this->qrCodeService->generateContentType($extension));
    }
public function generateAction ( ) { $ extension = $ this -> params ( ) -> fromRoute ( 'extension' , QrCodeServiceInterface :: DEFAULT_EXTENSION ) ; $ content = $ this -> qrCodeService -> getQrCodeContent ( $ this -> params ( ) ) ; return $ this -> createResponse ( $ content , $ this -> qrCodeService -> generateContentType ( $ extension ) ) ; }
Generates the QR code and returns it as stream
Generates the QR code and returns it as stream