Make path to phpvms easier to change

This commit is contained in:
Nabeel Shahzad 2017-12-15 19:31:32 -06:00
parent 7473b179c0
commit 3d43864bbd

View File

@ -10,12 +10,14 @@
* the 'path.public' path to where it lives. * the 'path.public' path to where it lives.
*/ */
require __DIR__.'/../bootstrap/autoload.php'; $path_to_phpvms_folder = __DIR__.'/../';
require $path_to_phpvms_folder.'/bootstrap/autoload.php';
/** /**
* @var $app Illuminate\Foundation\Application * @var $app Illuminate\Foundation\Application
*/ */
$app = require_once __DIR__.'/../bootstrap/app.php'; $app = require_once $path_to_phpvms_folder.'/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);