-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRequestConfiguration.php
46 lines (41 loc) · 1.11 KB
/
RequestConfiguration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
declare(strict_types=1);
namespace Core\Logger\Configuration;
class RequestConfiguration extends BaseHttpLoggingConfiguration
{
private $includeQueryInPath;
/**
* Construct an instance of RequestConfig for logging
*
* @param bool $includeQueryInPath
* @param bool $logBody
* @param bool $logHeaders
* @param string[] $headersToInclude
* @param string[] $headersToExclude
* @param string[] $headersToUnmask
*/
public function __construct(
bool $includeQueryInPath,
bool $logBody,
bool $logHeaders,
array $headersToInclude,
array $headersToExclude,
array $headersToUnmask
) {
parent::__construct(
$logBody,
$logHeaders,
$headersToInclude,
$headersToExclude,
$headersToUnmask
);
$this->includeQueryInPath = $includeQueryInPath;
}
/**
* Indicates whether to include query parameters in the logged path.
*/
public function shouldIncludeQueryInPath(): bool
{
return $this->includeQueryInPath;
}
}