Commit 4e792d8
authored
Adjust CP request handling for console requests
Prevent setting CP request flag for console requests.
Test command to run:
```
public function actionTestCpRequest(): int {
$order = Order::find()->isCompleted(true)->orderBy('id desc')->one();
if (!$order) {
$this->stdout("No completed order found to test with.\n");
return ExitCode::UNSPECIFIED_ERROR;
}
$url = $order->getPdfUrl();
$this->stdout("URL: $url\n");
return ExitCode::OK;
}
```1 parent fb6045e commit 4e792d8
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
514 | 518 | | |
515 | | - | |
516 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
517 | 524 | | |
518 | 525 | | |
519 | 526 | | |
| |||
0 commit comments