summaryrefslogtreecommitdiff
path: root/tests/error.php
blob: c77e68179f71afbccaff60b7d2ca8fbdbda41afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
/**
 * @var Goridge\RelayInterface $relay
 */

use Spiral\Goridge;
use Spiral\RoadRunner;

$rr = new RoadRunner\Worker($relay);

while ($in = $rr->waitPayload()) {
    $rr->error((string)$in->body);
}