/** * Bootstraps Strata by creating a Strata instance and * saving it to the global scope. * @param ClassLoader Current project's Composer autoloader. * @return Strata The current application */ public static function bootstrap(ClassLoader $loader) { $app = new Strata(); $app->setClassLoader($loader); // Expose the app context to the current process. self::$reference = $app; return $app; }