Skip to content

Commit 8304a8d

Browse files
committed
Update README.md
1 parent 1f36a68 commit 8304a8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ One more conenient method that client offers is option to call several commands
7777
$client = new EtcdClient('http://127.0.0.1:4001');
7878
$client->setSandboxPath('/my/namespace');
7979

80+
// Path relative to the current sandbox path
81+
$client->sandboxed('./different/namespace', function(EtcdClient &$c) {
82+
$c->set('new_key', 123); // Sets /my/namespace/different/namespace/new_key
83+
});
84+
85+
// Absolute path
8086
$client->sandboxed('/different/namespace', function(EtcdClient &$c) {
8187
$c->set('new_key', 123); // Sets /different/namespace/new_key
8288
});

0 commit comments

Comments
 (0)