Skip to content

Commit bc76af5

Browse files
author
Niels Theen
committed
Use relative path to execute script from anywhere
1 parent d5364d5 commit bc76af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/01-define-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once '../vendor/autoload.php';
3+
require __DIR__ . '/../vendor/autoload.php';
44

55
$loop = \React\EventLoop\Factory::create();
66

0 commit comments

Comments
 (0)