1
0
Fork 0

Fix autoloading

pull/6/head v2.0.1
Felix Becker 2016-08-25 16:51:34 +02:00
parent f1a53a93de
commit 8bdbebf8c7
1 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,12 @@
use LanguageServer\LanguageServer;
use Sabre\Event\Loop;
require __DIR__ . '../vendor/autoload.php';
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}
$server = new LanguageServer(new ProtocolStreamReader(STDIN), new ProtocolStreamWriter(STDOUT));