protected function createTaskInstance($taskName)
    {
        $taskClassName = $this->mapTaskNameToTaskClass($taskName);
        $task = new $taskClassName();
        if ($task instanceof ShellCommandServiceAwareInterface) {
            $task->setShellCommandService(new ShellCommandService());
        }
        return $task;
    }
protected function createTaskInstance($taskName)
    {
        $taskClassName = $this->mapTaskNameToTaskClass($taskName);
        $task = new $taskClassName();
        if ($task instanceof ShellCommandServiceAwareInterface) {
            $task->setShellCommandService(new ShellCommandService());
        }
        return $task;
    }
protected function createTaskInstance ( $ taskName ) { $ taskClassName = $ this -> mapTaskNameToTaskClass ( $ taskName ) ; $ task = new $ taskClassName ( ) ; if ( $ task instanceof ShellCommandServiceAwareInterface ) { $ task -> setShellCommandService ( new ShellCommandService ( ) ) ; } return $ task ; }
Create a task instance from the given task name

@param string $taskName
@return \TYPO3\Surf\Domain\Model\Task
@throws \TYPO3\Surf\Exception\InvalidConfigurationException
Create a task instance from the given task name