| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Metricool\Support\Helpers\Storages; |
| 6 |
|
| 7 |
use Metricool\Support\Helpers\Storage; |
| 8 |
|
| 9 |
/** |
| 10 |
* General config helper used in DI container. |
| 11 |
*/ |
| 12 |
final class RequestStorage extends Storage |
| 13 |
{ |
| 14 |
public function __construct() |
| 15 |
{ |
| 16 |
parent::__construct([ |
| 17 |
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce verification is handled at the endpoint level. |
| 18 |
'global' => $_REQUEST, |
| 19 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce verification is handled at the endpoint level. |
| 20 |
'files' => $_FILES, |
| 21 |
]); |
| 22 |
} |
| 23 |
} |
| 24 |
|