<?php use Xpressengine\Http\Request; /* * Define Xpressengine Version */ if (!defined('__XE_VERSION__')) { define('__XE_VERSION__', '3.0.0-beta.9'); } /* * Set RequestFactory so that make all of generated request to Xpressengine's request * Request에 RequestFactory를 지정한다. * XE에서 새로운 request가 생성될 때에는 이 ReqeustFactory는 사용되어 항상 Xpressengine\Http\Request를 생성하도록 한다 */ Request::setFactory(function ($query, $request, $attributes, $cookies, $files, $server, $content) { return new Request($query, $request, $attributes, $cookies, $files, $server, $content); }); /* |-------------------------------------------------------------------------- | 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. | */ $app = new Illuminate\Foundation\Application(realpath(__DIR__ . '/../')); /* |-------------------------------------------------------------------------- | Bind Important Interfaces