-
Notifications
You must be signed in to change notification settings - Fork 6
/
wel
58 lines (46 loc) · 1.82 KB
/
wel
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env php
<?php
define('WEL_ENV', true);
/**
* -------------------------------------------------------------------
* Tells WordPress to load the WordPress theme and output it.
* -------------------------------------------------------------------
*
* @var bool
*/
define('WP_USE_THEMES', false);
require(dirname(__FILE__) . '/cms/wp-load.php');
/**
* -------------------------------------------------------------------
* Start Laravel App
* -------------------------------------------------------------------
*/
$app = require __DIR__.'/vendor/bruno-barros/w.eloquent-framework/src/weloquent/Core/LaravelApplication.php';
/**
* ----------------------------------------------------------------------
* Load The Artisan/Wel Console Application
* ----------------------------------------------------------------------
*/
$app->setRequestForConsoleEnvironment();
//$artisan = Illuminate\Console\Application::start($app);
$wel = Weloquent\Core\Console\WelConsole::start($app);
/**
* ----------------------------------------------------------------------
* Run The Artisan/Wel Application
* ----------------------------------------------------------------------
*
* When we run the console application, the current CLI command will be
* executed in this console and the response sent back to a terminal
* or another output device for the developers. Here goes nothing!
*/
$status = $wel->run();
/**
* ----------------------------------------------------------------------
* Shutdown The Application
* ----------------------------------------------------------------------
*Once Artisan has finished running. We will fire off the shutdown events
* so that any final work may be done by the application before we shut
* down the process. This is the last thing to happen to the request.
*/
$app->shutdown();
exit($status);