領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0KB

  1. <?php
  2. namespace App\Http\Controllers\Web\ReceiptIssuingOrder;
  3. use App\Http\Controllers\Web\IParam;
  4. use App\Http\Controllers\Web\WebController;
  5. use App\Logic\ReceiptIssuingOrder\PDFDownLoadManager;
  6. use Illuminate\Http\Request;
  7. use Illuminate\Http\Response;
  8. class DownloadController extends WebController
  9. {
  10. public function name(): string
  11. {
  12. return "領収証PDFダウンロード";
  13. }
  14. public function description(): string
  15. {
  16. return "領収証PDFダウンロードする";
  17. }
  18. public function __construct(
  19. protected DownloadParam $param,
  20. private PDFDownLoadManager $manager
  21. ) {
  22. parent::__construct();
  23. }
  24. protected function getParam(): IParam
  25. {
  26. return $this->param;
  27. }
  28. protected function run(Request $request): Response
  29. {
  30. $param = $this->param;
  31. return $this->manager->initByToken($param->accessToken)->downlaodA4();
  32. // return $this->manager->initByToken($param->accessToken)->downlaodLetter();
  33. }
  34. }