Skip to content

Commit bdf14b2

Browse files
committed
Optional revision argument for directory browser example
1 parent 8fcb8e5 commit bdf14b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/directory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
$url = 'https://svn.apache.org/viewvc/';
1010
$path = isset($argv[1]) ? $argv[1] : '/';
11+
$revision = isset($argv[2]) ? $argv[2] : null;
1112

1213
$loop = LoopFactory::create();
1314

@@ -27,6 +28,6 @@
2728

2829
$client = new Client($url, $browser);
2930

30-
$client->fetchDirectory($path)->then('var_dump', 'var_dump');
31+
$client->fetchDirectory($path, $revision)->then('var_dump', 'var_dump');
3132

3233
$loop->run();

0 commit comments

Comments
 (0)