diff --git a/composer.json b/composer.json index 99782cd..5b0ad5d 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Catcher.php b/src/Catcher.php index fb9e55b..89b8b1d 100644 --- a/src/Catcher.php +++ b/src/Catcher.php @@ -5,6 +5,7 @@ namespace HawkBundle; use Hawk\Addons\Headers; +use Hawk\Addons\Environment; use Hawk\EventPayloadBuilder; use Hawk\Handler; use Hawk\Options; @@ -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);