File tree Expand file tree Collapse file tree 7 files changed +14
-7
lines changed Expand file tree Collapse file tree 7 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use React \EventLoop \Loop ;
4
4
5
- require __DIR__ . '/../../vendor/autoload.php ' ;
5
+ // autoload for local project development or project installed as dependency for reactphp/reactphp
6
+ (@include __DIR__ . '/../../vendor/autoload.php ' ) || require __DIR__ . '/../../../../autoload.php ' ;
6
7
7
8
Loop::futureTick (function () {
8
9
echo 'b ' ;
Original file line number Diff line number Diff line change 2
2
3
3
use React \EventLoop \Loop ;
4
4
5
- require __DIR__ . '/../../vendor/autoload.php ' ;
5
+ // autoload for local project development or project installed as dependency for reactphp/reactphp
6
+ (@include __DIR__ . '/../../vendor/autoload.php ' ) || require __DIR__ . '/../../../../autoload.php ' ;
6
7
7
8
$ loop = Loop::get ();
8
9
Original file line number Diff line number Diff line change 2
2
3
3
use React \EventLoop \Loop ;
4
4
5
- require __DIR__ . '/../../vendor/autoload.php ' ;
5
+ // autoload for local project development or project installed as dependency for reactphp/reactphp
6
+ (@include __DIR__ . '/../../vendor/autoload.php ' ) || require __DIR__ . '/../../../../autoload.php ' ;
6
7
7
8
$ loop = Loop::get ();
8
9
Original file line number Diff line number Diff line change 2
2
3
3
use React \EventLoop \Loop ;
4
4
5
- require __DIR__ . '/../../vendor/autoload.php ' ;
5
+ // autoload for local project development or project installed as dependency for reactphp/reactphp
6
+ (@include __DIR__ . '/../../vendor/autoload.php ' ) || require __DIR__ . '/../../../../autoload.php ' ;
6
7
7
8
Loop::addTimer (10.0 , function () {
8
9
echo 'never ' ;
Original file line number Diff line number Diff line change 2
2
3
3
use React \EventLoop \Loop ;
4
4
5
- require __DIR__ . '/../../vendor/autoload.php ' ;
5
+ // autoload for local project development or project installed as dependency for reactphp/reactphp
6
+ (@include __DIR__ . '/../../vendor/autoload.php ' ) || require __DIR__ . '/../../../../autoload.php ' ;
6
7
7
8
Loop::get ()->addTimer (10.0 , function () {
8
9
echo 'never ' ;
Original file line number Diff line number Diff line change 2
2
3
3
use React \EventLoop \Loop ;
4
4
5
- require __DIR__ . '/../../vendor/autoload.php ' ;
5
+ // autoload for local project development or project installed as dependency for reactphp/reactphp
6
+ (@include __DIR__ . '/../../vendor/autoload.php ' ) || require __DIR__ . '/../../../../autoload.php ' ;
6
7
7
8
Loop::addTimer (10.0 , function () {
8
9
echo 'never ' ;
Original file line number Diff line number Diff line change 2
2
3
3
use React \EventLoop \Loop ;
4
4
5
- require __DIR__ . '/../../vendor/autoload.php ' ;
5
+ // autoload for local project development or project installed as dependency for reactphp/reactphp
6
+ (@include __DIR__ . '/../../vendor/autoload.php ' ) || require __DIR__ . '/../../../../autoload.php ' ;
6
7
7
8
Loop::addTimer (10.0 , function () {
8
9
echo 'never ' ;
You can’t perform that action at this time.
0 commit comments