-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframebro
executable file
·43 lines (32 loc) · 949 Bytes
/
framebro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env php
<?php
namespace {
use Dotenv\Dotenv;
require 'app/Core/App.php';
define('ABSOLUTE_PATH', getcwd() . DIRECTORY_SEPARATOR);
App::startErrorReporting();
App::setAutoLoader('vendor/autoload');
App::defineSettings([
"mail" => "app/config/mail",
"connections" => "app/config/connections",
"aliases" => "app/config/aliases",
]);
App::main(function () {
/** @var App $this */
$this->import('app/Core/Libraries/globals');
if ($this->fileExists('.env')) {
$env = new Dotenv(ABSOLUTE_PATH);
$env->load();
$this->processConfigs();
$this->setTimeZone(getenv("TIMEZONE"));
try {
$this->fireApp();
} catch (\Throwable $e) {
App::dd($e);
}
} else {
print "no env file".PHP_EOL;
exit(1);
}
});
}