for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Yii\Runner\RoadRunner;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Throwable;
final class ThrowableHandler implements RequestHandlerInterface
{
private Throwable $throwable;
public function __construct(Throwable $throwable)
$this->throwable = $throwable;
}
public function handle(ServerRequestInterface $request): ResponseInterface
throw $this->throwable;