luya\base\Boot::run PHP Method

run() public method

Run the application based on the Sapi Name.
public run ( ) : luya\web\Application | luya\cli\Application
return luya\web\Application | luya\cli\Application Application objected based on the sapi name.
    public function run()
    {
        if ($this->getSapiName() === 'cli') {
            return $this->applicationConsole();
        }
        return $this->applicationWeb();
    }