Fixed bin autoload stuff

This commit is contained in:
Chris 2017-02-18 13:16:58 +01:00
parent a9c1a3ccbe
commit 01f6f960dc

View File

@ -8,7 +8,14 @@
// Licensed under GNU GPL v3 or later. // Licensed under GNU GPL v3 or later.
// //
require_once __DIR__."/../vendor/autoload.php"; foreach ([
__DIR__."/../../autoload.php",
__DIR__."/../vendor/autoload.php"
] as $autoload) {
if (file_exists($autoload)) {
require_once $autoload; break;
}
}
use NoccyLabs\UPnP\SSDP\Device; use NoccyLabs\UPnP\SSDP\Device;
use NoccyLabs\UPnP\SSDP\Discovery; use NoccyLabs\UPnP\SSDP\Discovery;