Skip to content

Commit a5b751b

Browse files
OskarStarknicolas-grekas
authored andcommitted
[Mailer] [Bridges] Use CPP and add more #[\SensitiveParameter] attributes
1 parent 099d81f commit a5b751b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Transport/ScalewayApiTransport.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@ final class ScalewayApiTransport extends AbstractApiTransport
2828
{
2929
private const HOST = 'api.scaleway.com';
3030

31-
private string $projectId;
32-
private string $token;
33-
private ?string $region;
34-
35-
public function __construct(string $projectId, string $token, string $region = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
36-
{
37-
$this->projectId = $projectId;
38-
$this->token = $token;
39-
$this->region = $region;
40-
31+
public function __construct(
32+
private string $projectId,
33+
#[\SensitiveParameter] private string $token,
34+
private ?string $region = null,
35+
HttpClientInterface $client = null,
36+
EventDispatcherInterface $dispatcher = null,
37+
LoggerInterface $logger = null,
38+
) {
4139
parent::__construct($client, $dispatcher, $logger);
4240
}
4341

0 commit comments

Comments
 (0)