diff options
Diffstat (limited to 'plugins/app/tests/hello.php')
-rw-r--r-- | plugins/app/tests/hello.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/plugins/app/tests/hello.php b/plugins/app/tests/hello.php index bf9e82cc..4219dcf4 100644 --- a/plugins/app/tests/hello.php +++ b/plugins/app/tests/hello.php @@ -1 +1,19 @@ -<?php echo "hello1 - " . time();
\ No newline at end of file +<?php +/** + * @var Goridge\RelayInterface $relay + */ + +use Spiral\Goridge; +use Spiral\RoadRunner; + +require "/vendor_php/autoload.php"; + +$rr = new RoadRunner\Worker($relay); + +while ($in = $rr->receive($ctx)) { + try { + $rr->send((string)$in); + } catch (\Throwable $e) { + $rr->error((string)$e); + } +}
\ No newline at end of file |