Skip to content

Commit

Permalink
Merge pull request #8 from codex-team/feature/add-environment-addon-t…
Browse files Browse the repository at this point in the history
…o-error-payload

Add `Environment` Addon to Include Hostname in Error Payload
  • Loading branch information
pavelzotikov authored Nov 14, 2024
2 parents 8de3a0b + 6896bb1 commit ae13aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "Symfony errors Catcher module for Hawk.so",
"keywords": ["hawk", "php", "error", "catcher", "monolog", "symfony"],
"type": "library",
"version": "0.0.6",
"version": "0.0.7",
"license": "MIT",
"require": {
"php": "^7.2 || ^8.0",
"monolog/monolog": "^2.2 || ^3.0",
"guzzlehttp/guzzle": "^6.0 || ^7.0",
"codex-team/hawk.php": "^2.2.4",
"codex-team/hawk.php": "^2.2.5",
"jean85/pretty-package-versions": "^1.5 || ^2.0",
"symfony/config": "^4.4.20||^5.0.11||^6.0||^7.0",
"symfony/dependency-injection": "^4.4.20||^5.0.11||^6.0||^7.0",
Expand Down
2 changes: 2 additions & 0 deletions src/Catcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace HawkBundle;

use Hawk\Addons\Headers;
use Hawk\Addons\Environment;
use Hawk\EventPayloadBuilder;
use Hawk\Handler;
use Hawk\Options;
Expand Down Expand Up @@ -47,6 +48,7 @@ public function __construct(array $options, TransportInterface $transport)
*/
$builder = new EventPayloadBuilder($stacktraceBuilder);
$builder->registerAddon(new Headers());
$builder->registerAddon(new Environment());

$this->handler = new Handler($options, $transport, $builder);

Expand Down

0 comments on commit ae13aaf

Please sign in to comment.