diff --git a/src/Extensions/CallableExtension.php b/src/Extensions/CallableExtension.php new file mode 100644 index 0000000..03ff2dc --- /dev/null +++ b/src/Extensions/CallableExtension.php @@ -0,0 +1,28 @@ +callable = $callable; + } + + public function apply(Event $event, Throwable $exception, ?ServerRequestInterface $request): void { + $callable = $this->callable; + $callable($event, $exception, $request); + } +}