| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function temporaryUrl(string $path, DateTimeInterface $expiresAt, array $config = []): string |
||
| 41 | { |
||
| 42 | $params = [ |
||
| 43 | 'path' => $this->normalizePath($path), |
||
| 44 | 'expires' => (int) $expiresAt->getTimestamp(), |
||
| 45 | 'config' => $config, |
||
| 46 | ]; |
||
| 47 | |||
| 48 | return Url::toRoute([$this->action, 'data' => $this->encrypt(Json::encode($params))], true); |
||
| 49 | } |
||
| 51 |