| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
use Weloquent\Core\Application;
$app = new \Weloquent\Core\Application();
/**
 * -----------------------------------------------------
 * Set my custom request class
 * -----------------------------------------------------
 */
Application::requestClass('Weloquent\\Core\\Http\\Request');
/*
|--------------------------------------------------------------------------
| Detect The Application Environment
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.
|
*/
$objEnv = new Weloquent\Config\Environment(dirname(ABSPATH));
$env = $objEnv->which();
$app['env'] = $env;
/*
|--------------------------------------------------------------------------