/** * Initialise the application * * @return void */ public static function init() { // Instantiate the application $app = Application::fromCwd(); // Give proxies an instance of the application $app->initializeProxies(); // Boot the app $app->boot(); static::$appPath = \App::appPath(); static::$vendorPath = \App::vendorPath(); if (defined('COMPILING')) { static::$appPath = BUILD_PATH . '/app'; static::$vendorPath = BUILD_PATH . '/vendor'; } }