src/Foundation/Bootstrapper.php
/**
	 * Bootstraps as a console application. 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 $baseDir
	 * @return void
	 */
Bootstraps as a console application. 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 $baseDir
@return void
Bootstraps as a console application . 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 $baseDir @return void
public static function startConsoleApplication($baseDir = null) {
		if (isset($_SERVER['REMOTE_ADDR'])) {
			echo "Error: Unsupported environment";
			exit(1);
		}
		Environment::set('ROOT', static::getRootPath($baseDir));
		Environment::set('HORIZON_MODE', 'console');
		Application::kernel()->boot();
	}
public static function startConsoleApplication ( $ baseDir = null ) { if ( isset ( $ _SERVER [ 'REMOTE_ADDR' ] ) ) { echo " Error: Unsupported environment " ; exit ( 1 ) ; } Environment :: set ( 'ROOT' , static :: getRootPath ( $ baseDir ) ) ; Environment :: set ( 'HORIZON_MODE' , 'console' ) ; Application :: kernel ( ) -> boot ( ) ; }
Bootstraps as a console application.
Bootstraps as a console application .