We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f36a68 commit 8304a8dCopy full SHA for 8304a8d
README.md
@@ -77,6 +77,12 @@ One more conenient method that client offers is option to call several commands
77
$client = new EtcdClient('http://127.0.0.1:4001');
78
$client->setSandboxPath('/my/namespace');
79
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
86
$client->sandboxed('/different/namespace', function(EtcdClient &$c) {
87
$c->set('new_key', 123); // Sets /different/namespace/new_key
88
});
0 commit comments