8000 [Notifier] Mark tokens with #[SensitiveParameter] · symfony/symfony@cd11d9c · GitHub
[go: up one dir, main page]

Skip to content

Commit cd11d9c

Browse files
[Notifier] Mark tokens with #[SensitiveParameter]
1 parent 929d5f4 commit cd11d9c

28 files changed

+28
-28
lines changed

src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class AllMySmsTransport extends AbstractTransport
3232
private string $apiKey;
3333
private ?string $from;
3434

35-
public function __construct(string $login, string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
35+
public function __construct(string $login, #[\SensitiveParameter] string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3636
{
3737
$this->login = $login;
3838
$this->apiKey = $apiKey;

src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ChatworkTransport extends AbstractTransport
3131
private string $apiToken;
3232
private string $roomId;
3333

34-
public function __construct(string $apiToken, string $roomId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $apiToken, string $roomId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->apiToken = $apiToken;
3737
$this->roomId = $roomId;

src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class ClickatellTransport extends AbstractTransport
3131
private string $authToken;
3232
private ?string $from;
3333

34-
public function __construct(string $authToken, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $authToken, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->authToken = $authToken;
3737
$this->from = $from;

src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class ContactEveryoneTransport extends AbstractTransport
3333
private ?string $diffusionName;
3434
private ?string $category;
3535

36-
public function __construct(string $token, ?string $diffusionName, ?string $category, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
36+
public function __construct(#[\SensitiveParameter]string $token, ?string $diffusionName, ?string $category, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3737
{
3838
$this->token = $token;
3939
$this->diffusionName = $diffusionName;

src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class EngagespotTransport extends AbstractTransport
3232
private $apiKey;
3333
private $campaignName;
3434

35-
public function __construct(string $apiKey< 10601 /span>, string $campaignName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
35+
public function __construct(#[\SensitiveParameter] string $apiKey, string $campaignName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3636
{
3737
$this->apiKey = $apiKey;
3838
$this->campaignName = $campaignName;

src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class ExpoTransport extends AbstractTransport
3232
/** @var string|null */
3333
private $token;
3434

35-
public function __construct(string $token = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
35+
public function __construct(#[\SensitiveParameter] string $token = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3636
{
3737
$this->token = $token;
3838
$this->client = $client;

src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class FortySixElksTransport extends AbstractTransport
3232
private string $apiPassword;
3333
private string $from;
3434

35-
public function __construct(string $apiUsername, string $apiPassword, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
35+
public function __construct(string $apiUsername, #[\SensitiveParameter] string $apiPassword, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3636
{
3737
$this->apiUsername = $apiUsername;
3838
$this->apiPassword = $apiPassword;

src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class GatewayApiTransport extends AbstractTransport
3131
private string $authToken;
3232
private string $from;
3333

34-
public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->authToken = $authToken;
3737
$this->from = $from;

src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class InfobipTransport extends AbstractTransport
3030
private string $authToken;
3131
private string $from;
3232

33-
public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
33+
public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3434
{
3535
$this->authToken = $authToken;
3636
$this->from = $from;

src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class LinkedInTransport extends AbstractTransport
3737
private string $authToken;
3838
private string $accountId;
3939

40-
public function __construct(string $authToken, string $accountId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
40+
public function __construct(#[\SensitiveParameter] string $authToken, string $accountId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
4141
{
4242
$this->authToken = $authToken;
4343
$this->accountId = $accountId;

src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class MailjetTransport extends AbstractTransport
3131
private string $authToken;
3232
private string $from;
3333

34-
public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->authToken = $authToken;
3737
$this->from = $from;

src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class MessageMediaTransport extends AbstractTransport
3333
private string $apiSecret;
3434
private ?string $from;
3535

36-
public function __construct(string $apiKey, string $apiSecret, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
36+
public function __construct(string $apiKey, #[\SensitiveParameter] string $apiSecret, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3737
{
3838
$this->apiKey = $apiKey;
3939
$this->apiSecret = $apiSecret;

src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class MobytTransport extends AbstractTransport
3434
private string $from;
3535
private string $typeQuality;
3636

37-
public function __construct(string $accountSid, string $authToken, string $from, string $typeQuality = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
37+
public function __construct(string $accountSid, #[\SensitiveParameter] string $authToken, string $from, string $typeQuality = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3838
{
3939
$this->accountSid = $accountSid;
4040
$this->authToken = $authToken;

src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class OctopushTransport extends AbstractTransport
3333
private string $from;
3434
private string $type;
3535

36-
public function __construct(string $userLogin, string $apiKey, string $from, string $type, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
36+
public function __construct(string $userLogin, #[\SensitiveParameter] string $apiKey, string $from, string $type, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3737
{
3838
$this->userLogin = $userLogin;
3939
$this->apiKey = $apiKey;

src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class OneSignalTransport extends AbstractTransport
3333
private $apiKey;
3434
private $defaultRecipientId;
3535

36-
public function __construct(string $appId, string $apiKey, string $defaultRecipientId = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
36+
public function __construct(string $appId, #[\SensitiveParameter] string $apiKey, string $defaultRecipientId = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3737
{
3838
$this->appId = $appId;
3939
$this->apiKey = $apiKey;

src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class OrangeSmsTransport extends AbstractTransport
2929
private string $from;
3030
private ?string $senderName;
3131

32-
public function __construct(string $clientID, string $clientSecret, string $from, string $senderName = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
32+
public function __construct(string $clientID, #[\SensitiveParameter] string $clientSecret, string $from, string $senderName = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3333
{
3434
$this->clientID = $clientID;
3535
$this->clientSecret = $clientSecret;

src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class OvhCloudTransport extends AbstractTransport
3535
private ?string $sender = null;
3636
private bool $noStopClause = false;
3737

38-
public function __construct(string $applicationKey, string $applicationSecret, string $consumerKey, string $serviceName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
38+
public function __construct(string $applicationKey, #[\SensitiveParameter] string $applicationSecret, string $consumerKey, string $serviceName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3939
{
4040
$this->applicationKey = $applicationKey;
4141
$this->applicationSecret = $applicationSecret;

src/Symfony/Component/Notifier/Bridge/Sendinblue/SendinblueTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class SendinblueTransport extends AbstractTransport
3131
private string $apiKey;
3232
private string $sender;
3333

34-
public function __construct(string $apiKey, string $sender, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $apiKey, string $sender, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->apiKey = $apiKey;
3737
$this->sender = $sender;

src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class SinchTransport extends AbstractTransport
3232
private string $authToken;
3333
private string $from;
3434

35-
public function __construct(string $accountSid, string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
35+
public function __construct(string $accountSid, #[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3636
{
3737
$this->accountSid = $accountSid;
3838
$this->authToken = $authToken;

src/Symfony/Component/Notifier/Bridge/Sms77/Sms77Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class Sms77Transport extends AbstractTransport
3131
private $apiKey;
3232
private $from;
3333

34-
public function __construct(string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->apiKey = $apiKey;
3737
$this->from = $from;

src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class SmsBiurasTransport extends AbstractTransport
4747
999 => 'Unknown Error',
4848
];
4949

50-
public function __construct(string $uid, string $apiKey, string $from, bool $testMode, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
50+
public function __construct(string $uid, #[\SensitiveParameter] string $apiKey, string $from, bool $testMode, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
5151
{
5252
$this->uid = $uid;
5353
$this->apiKey = $apiKey;

src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class SmsapiTransport extends AbstractTransport
3434
private bool $fast = false;
3535
private bool $test = false;
3636

37-
public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
37+
public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3838
{
3939
$this->authToken = $authToken;
4040
$this->from = $from;

src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class TelnyxTransport extends AbstractTransport
3333
private string $from;
3434
private ?string $messagingProfileId;
3535

36-
public function __construct(string $apiKey, string $from, ?string $messagingProfileId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
36+
public function __construct(#[\SensitiveParameter] string $apiKey, string $from, ?string $messagingProfileId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3737
{
3838
$this->apiKey = $apiKey;
3939
$this->from = $from;

src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class TurboSmsTransport extends AbstractTransport
3737
private string $authToken;
3838
private string $from;
3939

40-
public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
40+
public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
4141
{
4242
$this->assertValidFrom($from);
4343

src/Symfony/Component/Notifier/Bridge/Twilio/TwilioTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class TwilioTransport extends AbstractTransport
3333
private string $authToken;
3434
private string $from;
3535

36-
public function __construct(string $accountSid, string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
36+
public function __construct(string $accountSid, #[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3737
{
3838
$this->accountSid = $accountSid;
3939
$this->authToken = $authToken;

src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class VonageTransport extends AbstractTransport
3333
private $apiSecret;
3434
private $from;
3535

36-
public function __construct(string $apiKey, string $apiSecret, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
36+
public function __construct(string $apiKey, #[\SensitiveParameter] string $apiSecret, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3737
{
3838
$this->apiKey = $apiKey;
3939
$this->apiSecret = $apiSecret;

src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class YunpianTransport extends AbstractTransport
3131

3232
private string $apiKey;
3333

34-
public function __construct(string $apiKey, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $apiKey, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->apiKey = $apiKey;
3737

src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ZendeskTransport extends AbstractTransport
3030
private string $email;
3131
private string $token;
3232

33-
public function __construct(string $email, string $token, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
33+
public function __construct(string $email, #[\SensitiveParameter] string $token, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3434
{
3535
parent::__construct($client, $dispatcher);
3636

0 commit comments

Comments
 (0)
0