protected function loadDeployTask($type, $build_path, array $configurations = [])
    {
        $definitions = $this->deployDefinitions();

        $classname = isset($definitions[$type]) && class_exists($definitions[$type])
                ? $definitions[$type]
                : 'Droath\ProjectX\Deploy\NullDeploy';

        return (new $classname($build_path, $configurations))
            ->setInput($this->input())
            ->setOutput($this->output())
            ->setBuilder($this->getBuilder())
            ->setContainer($this->getContainer());
    }
protected function loadDeployTask($type, $build_path, array $configurations = [])
    {
        $definitions = $this->deployDefinitions();

        $classname = isset($definitions[$type]) && class_exists($definitions[$type])
                ? $definitions[$type]
                : 'Droath\ProjectX\Deploy\NullDeploy';

        return (new $classname($build_path, $configurations))
            ->setInput($this->input())
            ->setOutput($this->output())
            ->setBuilder($this->getBuilder())
            ->setContainer($this->getContainer());
    }
protected function loadDeployTask ( $ type , $ build_path , array $ configurations = [ ] ) { $ definitions = $ this -> deployDefinitions ( ) ; $ classname = isset ( $ definitions [ $ type ] ) && class_exists ( $ definitions [ $ type ] ) ? $ definitions [ $ type ] : 'Droath\ProjectX\Deploy\NullDeploy' ; return ( new $ classname ( $ build_path , $ configurations ) ) -> setInput ( $ this -> input ( ) ) -> setOutput ( $ this -> output ( ) ) -> setBuilder ( $ this -> getBuilder ( ) ) -> setContainer ( $ this -> getContainer ( ) ) ; }
Load deployment task.

@param $type
@param $build_path
@param array $configurations

@return DeployBase
Load deployment task .