src/InputController/CLIController/CLIRequest.php
public static function handleCurrentRequest() {
		try {
			CLIRoute::initialize();
			static::$mainRequest = static::generateFromEnvironment();
			$response = static::$mainRequest->process();
		} catch( \Exception $e ) {
			$response = CLIResponse::generateFromException($e);
		}
		$response->process();
		exit($response->getCode());
	}
public static function handleCurrentRequest() {
		try {
			CLIRoute::initialize();
			static::$mainRequest = static::generateFromEnvironment();
			$response = static::$mainRequest->process();
		} catch( \Exception $e ) {
			$response = CLIResponse::generateFromException($e);
		}
		$response->process();
		exit($response->getCode());
	}
public static function handleCurrentRequest ( ) { try { CLIRoute :: initialize ( ) ; static :: $ mainRequest = static :: generateFromEnvironment ( ) ; $ response = static :: $ mainRequest -> process ( ) ; } catch ( \ Exception $ e ) { $ response = CLIResponse :: generateFromException ( $ e ) ; } $ response -> process ( ) ; exit ( $ response -> getCode ( ) ) ; }
Handle the current request as a CLIRequest one
This method ends the script
Handle the current request as a CLIRequest one This method ends the script