public function start() {
        foreach ($this->modules as $module) {
            $module->start();
        }

        if (php_sapi_name() == "cli") {
            Commands::handleCommand();
        }
        else {
            Routes::handleRequest();
        }
    }
public function start() {
        foreach ($this->modules as $module) {
            $module->start();
        }

        if (php_sapi_name() == "cli") {
            Commands::handleCommand();
        }
        else {
            Routes::handleRequest();
        }
    }
public function start ( ) { foreach ( $ this -> modules as $ module ) { $ module -> start ( ) ; } if ( php_sapi_name ( ) == "cli" ) { Commands :: handleCommand ( ) ; } else { Routes :: handleRequest ( ) ; } }
Initializes the application
@throws Exception
Initializes the application