Skip to content

Commit bbac545

Browse files
authored
chore: Opt out of Bolt analytics (#249)
* chore: Opt out of Bolt analytics
1 parent 265155b commit bbac545

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Bolt/ProtocolFactory.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ class ProtocolFactory
3131
*/
3232
public function createProtocol(IConnection $connection, AuthenticateInterface $auth, string $userAgent): array
3333
{
34+
$boltOptoutEnv = getenv('BOLT_ANALYTICS_OPTOUT');
35+
if ($boltOptoutEnv === false) {
36+
putenv('BOLT_ANALYTICS_OPTOUT=1');
37+
}
38+
3439
$bolt = new Bolt($connection);
3540
$bolt->setProtocolVersions('5.4.4', 4.4);
3641
$protocol = $bolt->build();

0 commit comments

Comments
 (0)