Explorar o código

Connection parameters are not the focus of the client options example.

Daniele Alessandri %!s(int64=11) %!d(string=hai) anos
pai
achega
e18192474a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -113,11 +113,11 @@ it is recommended to refer to their specific documentation or implementation for
 ### Client configuration ###
 ### Client configuration ###
 
 
 Various aspects of the client can be configured simply by passing options to the second argument of
 Various aspects of the client can be configured simply by passing options to the second argument of
-`Predis\Client::__construct()`.
+`Predis\Client::__construct()`:
 
 
 ```php
 ```php
 $client = new \Predis\Client(
 $client = new \Predis\Client(
-    ['database' => 2],
+    $connection_parameters,
     ['profile' => '2.8', 'prefix' => 'sample:']
     ['profile' => '2.8', 'prefix' => 'sample:']
 );
 );
 ```
 ```