src/Foundation/Bootstrapper.php
/**
	 * Bootstraps as a web application. Pass `router` or `legacy` as the first parameter for the router type. Pass an
	 * absolute path to the application's root directory where the composer.json file can be found. If a path is not
	 * supplied, it will be detected automatically.
	 *
	 * @param string $mode 'router' or 'legacy'
	 * @param string $baseDir
	 * @return void
	 */
Bootstraps as a web application. Pass `router` or `legacy` as the first parameter for the router type. Pass an
absolute path to the application's root directory where the composer.json file can be found. If a path is not
supplied, it will be detected automatically.

@param string $mode 'router' or 'legacy'
@param string $baseDir
@return void
Bootstraps as a web application . Pass ` router ` or ` legacy ` as the first parameter for the router type . Pass an absolute path to the application ' s root directory where the composer . json file can be found . If a path is not supplied it will be detected automatically . @param string $mode ' router ' or ' legacy ' @param string $baseDir @return void
public static function startWebApplication($mode, $baseDir = null) {
		Environment::set('ROOT', static::getRootPath($baseDir));
		Environment::set('HORIZON_MODE', 'web');
		Environment::set('ROUTING_MODE', $mode);
		Application::kernel()->boot();
	}
public static function startWebApplication ( $ mode , $ baseDir = null ) { Environment :: set ( 'ROOT' , static :: getRootPath ( $ baseDir ) ) ; Environment :: set ( 'HORIZON_MODE' , 'web' ) ; Environment :: set ( 'ROUTING_MODE' , $ mode ) ; Application :: kernel ( ) -> boot ( ) ; }
Bootstraps as a web application.
Bootstraps as a web application .