Skip to content

Commit fa3d2d5

Browse files
committed
bug #48062 [Notifier] Mark tokens with #[SensitiveParameter] (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [Notifier] Mark tokens with #[SensitiveParameter] | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Not sure why we missed so many of them, but here is the remaining. Commits ------- 513c2f8 [Notifier] Mark tokens with #[SensitiveParameter]
2 parents 652dc7d + 513c2f8 commit fa3d2d5

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, 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;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy