public function command($command, $args = [], $id = null)
    {
        $target = Router::getInstance()->getTarget($command);
        $fn = function () use ($target) {
            return $target->run();
        };

        return $this->call($fn, $args, $id);
    }
public function command($command, $args = [], $id = null)
    {
        $target = Router::getInstance()->getTarget($command);
        $fn = function () use ($target) {
            return $target->run();
        };

        return $this->call($fn, $args, $id);
    }
public function command ( $ command , $ args = [ ] , $ id = null ) { $ target = Router :: getInstance ( ) -> getTarget ( $ command ) ; $ fn = function ( ) use ( $ target ) { return $ target -> run ( ) ; } ; return $ this -> call ( $ fn , $ args , $ id ) ; }
Queues a command for execution.

@param  string  $command  The command to execute
@param  array  $args  Optional arguments to pass to the php script
@param  string  $id   Optional custom identifier
@return Job
Queues a command for execution .