Skip to content

Commit

Permalink
Improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Jun 17, 2021
1 parent af403f6 commit d476fc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ RoadRunner server.
```php
<?php
use Spiral\Goridge\RPC\RPC;
use Spiral\RoadRunner\KeyValue\Factory;
require __DIR__ . '/vendor/autoload.php';
$factory = new \Spiral\RoadRunner\KeyValue\Factory(
\Spiral\Goridge\RPC\RPC::create('tcp://127.0.0.1:6001')
);
$factory = new Factory(RPC::create('tcp://127.0.0.1:6001'));
if (!$factory->isAvailable()) {
throw new \LogicException('The [kv] plugin not available');
Expand Down

0 comments on commit d476fc8

Please sign in to comment.