projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
drop async-interop
[m6w6/seekat]
/
examples
/
cli.php
diff --git
a/examples/cli.php
b/examples/cli.php
index fc72130200e41c390d9342d50e84057ca98bba01..caae47c17d0c802b468a60bf5cb15f4b00364556 100755
(executable)
--- a/
examples/cli.php
+++ b/
examples/cli.php
@@
-8,18
+8,18
@@
$api = new seekat\API(seekat\API\Future\react(), [
]);
array_shift($argv);
]);
array_shift($argv);
-($self = function($
error, $
api) use(&$self) {
+($self = function($api) use(&$self) {
global $argv;
while (null !== ($arg = array_shift($argv))) {
if ("." === $arg) {
global $argv;
while (null !== ($arg = array_shift($argv))) {
if ("." === $arg) {
- $api->
w
hen($self);
+ $api->
t
hen($self);
return;
}
$api = $api->$arg;
}
echo $api, "\n";
return;
}
$api = $api->$arg;
}
echo $api, "\n";
-})(
null,
$api);
+})($api);
$api->send();
$api->send();