Skip to content

Commit ded0746

Browse files
committed
Updated ga library to version 2.0.
1 parent b0aa67a commit ded0746

File tree

6 files changed

+81
-130
lines changed

6 files changed

+81
-130
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ext-PDO": "*",
1919
"bluepsyduck/mapper-manager": "^1.0",
2020
"bluepsyduck/laminas-autowire-factory": "^1.0",
21-
"bluepsyduck/ga4-measurement-protocol": "^1.0",
21+
"bluepsyduck/ga4-measurement-protocol": "dev-feature/attributes",
2222
"doctrine/cache": "^1.10",
2323
"factorio-item-browser/api-client": "^4.0",
2424
"factorio-item-browser/api-database": "^3.7",
@@ -33,7 +33,7 @@
3333
"mezzio/mezzio-fastroute": "^3.0",
3434
"mezzio/mezzio-helpers": "^5.0",
3535
"ramsey/uuid": "^4.0",
36-
"symfony/console": "^4.0 | ^5.0"
36+
"symfony/console": "^5.0"
3737
},
3838
"require-dev": {
3939
"bluepsyduck/test-helper": "^2.0",

composer.lock

Lines changed: 58 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Tracking/ClientFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use BluePsyduck\Ga4MeasurementProtocol\Client;
88
use BluePsyduck\Ga4MeasurementProtocol\ClientInterface;
99
use BluePsyduck\Ga4MeasurementProtocol\Config;
10+
use BluePsyduck\Ga4MeasurementProtocol\Serializer\Serializer;
1011
use FactorioItemBrowser\Api\Server\Constant\ConfigKey;
1112
use GuzzleHttp\Client as GuzzleClient;
1213
use GuzzleHttp\Psr7\HttpFactory;
@@ -27,11 +28,12 @@ public function __invoke(ContainerInterface $container, $requestedName, ?array $
2728

2829
$guzzleClient = new GuzzleClient();
2930
$httpFactory = new HttpFactory();
31+
$serializer = new Serializer();
3032

3133
$clientConfig = new Config();
3234
$clientConfig->measurementId = $config[ConfigKey::TRACKING_MEASUREMENT_ID];
3335
$clientConfig->apiSecret = $config[ConfigKey::TRACKING_API_SECRET];
3436

35-
return new Client($guzzleClient, $httpFactory, $httpFactory, $clientConfig);
37+
return new Client($guzzleClient, $httpFactory, $httpFactory, $serializer, $clientConfig);
3638
}
3739
}

0 commit comments

Comments
 (0)