diff options
Diffstat (limited to 'tests/plugins/grpc/php_server/worker-grpc.php')
-rw-r--r-- | tests/plugins/grpc/php_server/worker-grpc.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/plugins/grpc/php_server/worker-grpc.php b/tests/plugins/grpc/php_server/worker-grpc.php deleted file mode 100644 index 683a2341..00000000 --- a/tests/plugins/grpc/php_server/worker-grpc.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php -/** - * Sample GRPC PHP server. - */ - -use Service\EchoInterface; -use Spiral\Goridge\StreamRelay; -use Spiral\GRPC\Server; -use Spiral\RoadRunner\Worker; - -require __DIR__ . '/vendor/autoload.php'; - -$server = new Server(null, [ - 'debug' => false, // optional (default: false) -]); - -$server->registerService(EchoInterface::class, new EchoService()); - -$worker = \method_exists(Worker::class, 'create') - // RoadRunner >= 2.x - ? Worker::create() - // RoadRunner 1.x - : new Worker(new StreamRelay(STDIN, STDOUT)) -; - -$server->serve($worker); |