summaryrefslogtreecommitdiff
path: root/tests/supervised.php
blob: 74f8c99403ea0aa8f0f2c24f526fb4d58ebcbe96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

declare(strict_types=1);

use Spiral\Goridge\StreamRelay;
use Spiral\RoadRunner\Worker as RoadRunner;

require __DIR__ . "/vendor/autoload.php";

$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT));
$mem = '';
while($rr->waitPayload()){
    $rr->respond(new \Spiral\RoadRunner\Payload(""));
}