Skip to content

Commit

Permalink
use constructor for error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Beranek committed Sep 26, 2024
1 parent 4758b75 commit 3e21a42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Error/DefaultErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@

final class DefaultErrorHandler implements ErrorHandlerInterface
{
/** @var ConfiguratorInterface @inject */
/** @var ConfiguratorInterface */
public $outputConfigurator;

public function __construct(ConfiguratorInterface $outputConfigurator)
{
$this->outputConfigurator = $outputConfigurator;
}

public function handle(Throwable $exception): JsonApiResponse
{
Debugger::log($exception, Debugger::EXCEPTION);
Expand Down

0 comments on commit 3e21a42

Please sign in to comment.