Skip to content

Commit

Permalink
feature: adding server hostname to server object
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSteveKing committed Sep 26, 2024
1 parent 0c8ccae commit 82b7790
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 82b7790

Please sign in to comment.