OrdinaryJellyfish you are completely correct, I just checked in the source and on my dev install.
Flarum\Foundation\Site::fromPaths()
already accepts an optional vendor
key. I think it does exactly what you need.
Just edit that array in <root>/public/index.php
and <root>/flarum
, like this:
require '../not-vendor/autoload.php';
$server = new Flarum\Http\Server(
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__.'/..',
'public' => __DIR__.'/../public',
'storage' => __DIR__.'/../storage',
'vendor' => __DIR__.'/../not-vendor'
])
);