phpvms/public/index.php

31 lines
644 B
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
/**
* phpVMS
*/
/**
* If you move the public folder, or all the files in the public
* folder, be sure to go into the bootstrap/app.php file, and change
* the 'path.public' path to where it lives.
2017-06-09 02:28:26 +08:00
*/
2017-12-16 09:31:32 +08:00
$path_to_phpvms_folder = __DIR__.'/../';
require $path_to_phpvms_folder.'/bootstrap/autoload.php';
2017-06-09 02:28:26 +08:00
/**
* @var $app Illuminate\Foundation\Application
*/
2017-12-16 09:31:32 +08:00
$app = require_once $path_to_phpvms_folder.'/bootstrap/app.php';
2017-06-09 02:28:26 +08:00
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);