diff options
author | Wolfy-J <[email protected]> | 2018-06-22 10:25:06 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2018-06-22 10:25:06 +0300 |
commit | aefd3dc833f6a4867dd1885b070b2152e64b1caa (patch) | |
tree | dc274bdf3934b76072fdd874284395e8cb15f6b3 | |
parent | 8c090d83eef5cef9b5408f797119d7aead42462b (diff) |
Update README.md
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -82,7 +82,7 @@ http: # http worker pool configuration. workers: # php worker command. - command: "php psr-worker.php pipes" + command: "php psr-worker.php" # connection method (pipes, tcp://:9000, unix://socket.unix). relay: "pipes" @@ -118,6 +118,7 @@ static: Where `psr-worker.php`: ```php +$relay = new Spiral\Goridge\StreamRelay(STDIN, STDOUT); $psr7 = new Spiral\RoadRunner\PSR7Client(new Spiral\RoadRunner\Worker($relay)); while ($req = $psr7->acceptRequest()) { |