Files
newznab-tmux-NNTmux/bootstrap/autoload.php
T
2018-03-03 20:47:49 +01:00

28 lines
732 B
PHP

<?php
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php';
require_once 'constants.php';
require __DIR__.DIRECTORY_SEPARATOR.'app.php';
use Dotenv\Dotenv;
use Blacklight\utility\Utility;
$dotenv = new Dotenv(dirname(__DIR__, 1));
$dotenv->load();
define('NNTMUX_START', microtime(true));
define('NN_APP_PATH', dirname(__DIR__).DS.'app');
if (! defined('NN_ROOT')) {
define('NN_ROOT', dirname(NN_APP_PATH, 2));
}
if (! defined('HAS_WHICH')) {
define('HAS_WHICH', Utility::hasWhich() ? true : false);
}
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$app->handle(\Illuminate\Http\Request::capture());
require_once __DIR__.DIRECTORY_SEPARATOR.'yenc.php';