Skip to content

Commit

Permalink
Merge pull request #94 from Treblle/feature/server-hostname
Browse files Browse the repository at this point in the history
feature: adding server hostname to server object
  • Loading branch information
JustSteveKing authored Sep 26, 2024
2 parents 0c8ccae + 82b7790 commit c2e4ff2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"treblle/utils": "^0.3.3"
"treblle/utils": "^0.4.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.7.0",
Expand Down
1 change: 1 addition & 0 deletions src/Factories/DataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function make(Request $request, JsonResponse|Response|SymfonyResponse $re
php_uname('m'),
),
(string) $request->server('HTTP_ACCEPT_ENCODING'),
$request->host(),
),
new Language(
'php',
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ protected function newData(): Data
architecture: 'arm',
),
encoding: 'gzip',
hostname: 'localhost',
),
language: new Language(
name: 'PHP',
Expand Down

0 comments on commit c2e4ff2

Please sign in to comment.