src/Samurai/Component/Task/Processor.php
public function execute($name, $option = [])
    {
        if (is_string($name)) {
            $names = explode(self::SEPARATOR, $name);
            $method = array_pop($names);
            $task = $this->get($name);
        }

        $task->execute($option);
    }
public function execute($name, $option = [])
    {
        if (is_string($name)) {
            $names = explode(self::SEPARATOR, $name);
            $method = array_pop($names);
            $task = $this->get($name);
        }

        $task->execute($option);
    }
public function execute ( $ name , $ option = [ ] ) { if ( is_string ( $ name ) ) { $ names = explode ( self :: SEPARATOR , $ name ) ; $ method = array_pop ( $ names ) ; $ task = $ this -> get ( $ name ) ; } $ task -> execute ( $ option ) ; }
call task.

@access  public
@param   mixed   $name
@param   array|Samurai\Samurai\Component\Task\Option $option
call task .