Library/Phalcon/Script.php
public function dispatch(Command $command)
    {
        // If beforeCommand fails abort
        if ($this->_eventsManager->fire('command:beforeCommand', $command) === false) {
            return false;
        }

        // If run the commands fails abort too
        if ($command->run($command->getParameters()) === false) {
            return false;
        }

        $this->_eventsManager->fire('command:afterCommand', $command);

        return true;
    }
public function dispatch(Command $command)
    {
        // If beforeCommand fails abort
        if ($this->_eventsManager->fire('command:beforeCommand', $command) === false) {
            return false;
        }

        // If run the commands fails abort too
        if ($command->run($command->getParameters()) === false) {
            return false;
        }

        $this->_eventsManager->fire('command:afterCommand', $command);

        return true;
    }
public function dispatch ( Command $ command ) { // If beforeCommand fails abort if ( $ this -> _eventsManager -> fire ( 'command:beforeCommand' , $ command ) === false ) { return false ; } // If run the commands fails abort too if ( $ command -> run ( $ command -> getParameters ( ) ) === false ) { return false ; } $ this -> _eventsManager -> fire ( 'command:afterCommand' , $ command ) ; return true ; }
Dispatch the Command

@param Command $command
@return bool
Dispatch the Command