public function afterTask($task, $tasks, Application $application = null)
    {
        if (!is_array($tasks)) {
            $tasks = [$tasks];
        }

        $applicationName = $application !== null ? $application->getName() : '_';

        if (!isset($this->tasks['after'][$applicationName][$task])) {
            $this->tasks['after'][$applicationName][$task] = [];
        }
        $this->tasks['after'][$applicationName][$task] = array_merge($this->tasks['after'][$applicationName][$task], $tasks);

        return $this;
    }
public function afterTask($task, $tasks, Application $application = null)
    {
        if (!is_array($tasks)) {
            $tasks = [$tasks];
        }

        $applicationName = $application !== null ? $application->getName() : '_';

        if (!isset($this->tasks['after'][$applicationName][$task])) {
            $this->tasks['after'][$applicationName][$task] = [];
        }
        $this->tasks['after'][$applicationName][$task] = array_merge($this->tasks['after'][$applicationName][$task], $tasks);

        return $this;
    }
public function afterTask ( $ task , $ tasks , Application $ application = null ) { if ( ! is_array ( $ tasks ) ) { $ tasks = [ $ tasks ] ; } $ applicationName = $ application !== null ? $ application -> getName ( ) : '_' ; if ( ! isset ( $ this -> tasks [ 'after' ] [ $ applicationName ] [ $ task ] ) ) { $ this -> tasks [ 'after' ] [ $ applicationName ] [ $ task ] = [ ] ; } $ this -> tasks [ 'after' ] [ $ applicationName ] [ $ task ] = array_merge ( $ this -> tasks [ 'after' ] [ $ applicationName ] [ $ task ] , $ tasks ) ; return $ this ; }
Add tasks that shall be executed after the given task

The execution will not depend on a stage but on an optional application.

@param string $task
@param array|string $tasks
@param \TYPO3\Surf\Domain\Model\Application $application

@return \TYPO3\Surf\Domain\Model\Workflow
Add tasks that shall be executed after the given task