src/mako/application/Application.php
public static function start(string $applicationPath)
	{
		if(!empty(static::$instance))
		{
			throw new LogicException('The application has already been started.');
		}

		static::$instance = new static($applicationPath);

		return static::$instance->boot();
	}
public static function start(string $applicationPath)
	{
		if(!empty(static::$instance))
		{
			throw new LogicException('The application has already been started.');
		}

		static::$instance = new static($applicationPath);

		return static::$instance->boot();
	}
public static function start ( string $ applicationPath ) { if ( ! empty ( static :: $ instance ) ) { throw new LogicException ( 'The application has already been started.' ) ; } static :: $ instance = new static ( $ applicationPath ) ; return static :: $ instance -> boot ( ) ; }
Starts the application and returns a singleton instance of the application.


@param  string          $applicationPath Application path
@throws \LogicException
@return static
Starts the application and returns a singleton instance of the application .