Skip to content

Commit f3a8604

Browse files
committed
Add autoload to examples to allow running them
1 parent b406ac9 commit f3a8604

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/parallel-download.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// downloading the two best technologies ever in parallel
44

5+
require __DIR__.'/../vendor/autoload.php';
6+
57
$loop = React\EventLoop\Factory::create();
68

79
$files = array(

examples/scalability.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// a simple, single-process, horizontal scalable http server listening on 10 ports
44

5+
require __DIR__.'/../vendor/autoload.php';
6+
57
$loop = React\EventLoop\Factory::create();
68

79
for($i=0;$i<10;++$i){

0 commit comments

Comments
 (0)