protected function start() {
        $args = $this->getServerArguments();
        if ($args['command']) {
            $commandClass = $this->getCommandClassFromNameAndModule($args['command'], null);
        } else {
            $commandClass = $this->notFoundCommand;
        }
        if (!class_exists($commandClass)) {
            $this->alert('Command ' . $commandClass . ' not found!', array(
                'requestedCommand' => $args['command'],
                'requestedModule' => '-'
            ));
            $commandClass = $this->notFoundCommand;
        }

        $command = $this->loadCommand($commandClass);
        $command->setActiveAction($args['action']);
        $command->run($args['params']);
    }
protected function start() {
        $args = $this->getServerArguments();
        if ($args['command']) {
            $commandClass = $this->getCommandClassFromNameAndModule($args['command'], null);
        } else {
            $commandClass = $this->notFoundCommand;
        }
        if (!class_exists($commandClass)) {
            $this->alert('Command ' . $commandClass . ' not found!', array(
                'requestedCommand' => $args['command'],
                'requestedModule' => '-'
            ));
            $commandClass = $this->notFoundCommand;
        }

        $command = $this->loadCommand($commandClass);
        $command->setActiveAction($args['action']);
        $command->run($args['params']);
    }
protected function start ( ) { $ args = $ this -> getServerArguments ( ) ; if ( $ args [ 'command' ] ) { $ commandClass = $ this -> getCommandClassFromNameAndModule ( $ args [ 'command' ] , null ) ; } else { $ commandClass = $ this -> notFoundCommand ; } if ( ! class_exists ( $ commandClass ) ) { $ this -> alert ( 'Command ' . $ commandClass . ' not found!' , array ( 'requestedCommand' => $ args [ 'command' ] , 'requestedModule' => '-' ) ) ; $ commandClass = $ this -> notFoundCommand ; } $ command = $ this -> loadCommand ( $ commandClass ) ; $ command -> setActiveAction ( $ args [ 'action' ] ) ; $ command -> run ( $ args [ 'params' ] ) ; }
This is the main method called when the application is executed.

It will first check for the command arguments and if none are found it will call the not found command.
This is the main method called when the application is executed .