forked from munkireport/munkireport-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
please
executable file
·39 lines (28 loc) · 1.13 KB
/
please
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
#!/usr/bin/env php
<?php
use Illuminate\Console\Application;
use Illuminate\Container\Container;
use Illuminate\Events\Dispatcher;
require_once __DIR__ . '/app/helpers/env_helper.php';
require_once __DIR__ . '/app/helpers/site_helper.php';
require_once __DIR__.'/vendor/autoload.php';
define('PUBLIC_ROOT', dirname(__FILE__) . '/public' );
define('APP_ROOT', dirname(__FILE__) . '/' );
spl_autoload_register('munkireport_autoload');
require_once APP_ROOT . 'app/helpers/config_helper.php';
initDotEnv();
initConfig();
configAppendFile(APP_ROOT . 'app/config/app.php');
configAppendFile(APP_ROOT . 'app/config/db.php', 'connection');
$container = new Container;
$dispatcher = new Dispatcher;
$version = "MunkiReport"; // Laravel version
$app = new Application($container, $dispatcher, $version);
$app->setCatchExceptions(true);
$app->add(new App\Console\Commands\MigrateCommand);
$app->add(new App\Console\Commands\ModuleCommand);
$app->add(new App\Console\Commands\MigrationCommand);
$app->add(new App\Console\Commands\SeedCommand);
$app->add(new App\Console\Commands\UpCommand);
$app->add(new App\Console\Commands\DownCommand);
$app->run();