src/Composer/Script.php
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';
        }
    }
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';
        }
    }
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' ; } }
Initialise the application

@return void
Initialise the application