We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5311a4b + ffd1c45 commit 10cfa5bCopy full SHA for 10cfa5b
examples/common.php
@@ -9,7 +9,12 @@
9
ini_set('log_errors', 0);
10
ini_set('html_errors', 0);
11
12
-require_once __DIR__ . '/../vendor/autoload.php';
+foreach(array(__DIR__ . '/../vendor', __DIR__ . '/../../../../vendor') as $vendorDir) {
13
+ if(is_dir($vendorDir)) {
14
+ require_once $vendorDir . '/autoload.php';
15
+ break;
16
+ }
17
+}
18
19
function test_notify(cli\Notify $notify, $cycle = 1000000, $sleep = null) {
20
for ($i = 0; $i <= $cycle; $i++) {
0 commit comments