public function setTaskOptions($taskName, $options)
    {
        $baseTask = $taskName;
        if (isset($this->tasks['defined'][$taskName]) && is_array($this->tasks['defined'][$taskName])) {
            $definedTask = $this->tasks['defined'][$taskName];
            $baseTask = $definedTask['task'];
            if (is_array($definedTask['options'])) {
                $options = array_merge_recursive($definedTask['options'], $options);
            }
        }
        $this->defineTask($taskName, $baseTask, $options);

        return $this;
    }
public function setTaskOptions($taskName, $options)
    {
        $baseTask = $taskName;
        if (isset($this->tasks['defined'][$taskName]) && is_array($this->tasks['defined'][$taskName])) {
            $definedTask = $this->tasks['defined'][$taskName];
            $baseTask = $definedTask['task'];
            if (is_array($definedTask['options'])) {
                $options = array_merge_recursive($definedTask['options'], $options);
            }
        }
        $this->defineTask($taskName, $baseTask, $options);

        return $this;
    }
public function setTaskOptions ( $ taskName , $ options ) { $ baseTask = $ taskName ; if ( isset ( $ this -> tasks [ 'defined' ] [ $ taskName ] ) && is_array ( $ this -> tasks [ 'defined' ] [ $ taskName ] ) ) { $ definedTask = $ this -> tasks [ 'defined' ] [ $ taskName ] ; $ baseTask = $ definedTask [ 'task' ] ; if ( is_array ( $ definedTask [ 'options' ] ) ) { $ options = array_merge_recursive ( $ definedTask [ 'options' ] , $ options ) ; } } $ this -> defineTask ( $ taskName , $ baseTask , $ options ) ; return $ this ; }
Override options for given task

@param string $taskName
@param array $options

@return \TYPO3\Surf\Domain\Model\Workflow
Override options for given task