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.
|
- <?php
-
- namespace App\Http\Controllers\Web\ReceiptIssuingOrder;
-
- use App\Http\Controllers\Web\IParam;
- use App\Http\Controllers\Web\WebController;
- use App\Logic\ReceiptIssuingOrder\PDFDownLoadManager;
- use Illuminate\Http\Request;
- use Illuminate\Http\Response;
-
- class DownloadController extends WebController
- {
- public function name(): string
- {
- return "領収証PDFダウンロード";
- }
-
- public function description(): string
- {
- return "領収証PDFダウンロードする";
- }
-
- public function __construct(
- protected DownloadParam $param,
- private PDFDownLoadManager $manager
- ) {
- parent::__construct();
- }
-
- protected function getParam(): IParam
- {
- return $this->param;
- }
-
- protected function run(Request $request): Response
- {
- $param = $this->param;
-
- return $this->manager->initByToken($param->accessToken)->downlaodA4();
- // return $this->manager->initByToken($param->accessToken)->downlaodLetter();
- }
- }
|