protected function preInitBranchPackage(VcsDriverInterface $driver, array $data, $branch, $identifier)
    {
        $packageName = $this->createPackageName();
        $data = array_merge($this->createMockOfPackageConfig($packageName, $branch), $data);
        $data = $this->preProcessAsset($data);
        $data['version'] = $branch;
        $data = $this->configureBranchPackage($branch, $data);

        if (!isset($data['dist'])) {
            $data['dist'] = $driver->getDist($identifier);
        }
        if (!isset($data['source'])) {
            $data['source'] = $driver->getSource($identifier);
        }

        $loader = new ArrayLoader();
        $package = $loader->load($data);
        $package = $this->includeBranchAlias($driver, $package, $branch);
        $this->addPackage($package);
    }
protected function preInitBranchPackage(VcsDriverInterface $driver, array $data, $branch, $identifier)
    {
        $packageName = $this->createPackageName();
        $data = array_merge($this->createMockOfPackageConfig($packageName, $branch), $data);
        $data = $this->preProcessAsset($data);
        $data['version'] = $branch;
        $data = $this->configureBranchPackage($branch, $data);

        if (!isset($data['dist'])) {
            $data['dist'] = $driver->getDist($identifier);
        }
        if (!isset($data['source'])) {
            $data['source'] = $driver->getSource($identifier);
        }

        $loader = new ArrayLoader();
        $package = $loader->load($data);
        $package = $this->includeBranchAlias($driver, $package, $branch);
        $this->addPackage($package);
    }
protected function preInitBranchPackage ( VcsDriverInterface $ driver , array $ data , $ branch , $ identifier ) { $ packageName = $ this -> createPackageName ( ) ; $ data = array_merge ( $ this -> createMockOfPackageConfig ( $ packageName , $ branch ) , $ data ) ; $ data = $ this -> preProcessAsset ( $ data ) ; $ data [ 'version' ] = $ branch ; $ data = $ this -> configureBranchPackage ( $ branch , $ data ) ; if ( ! isset ( $ data [ 'dist' ] ) ) { $ data [ 'dist' ] = $ driver -> getDist ( $ identifier ) ; } if ( ! isset ( $ data [ 'source' ] ) ) { $ data [ 'source' ] = $ driver -> getSource ( $ identifier ) ; } $ loader = new ArrayLoader ( ) ; $ package = $ loader -> load ( $ data ) ; $ package = $ this -> includeBranchAlias ( $ driver , $ package , $ branch ) ; $ this -> addPackage ( $ package ) ; }
Pre inits the branch of complete package.

@param VcsDriverInterface $driver     The vcs driver
@param array              $data       The asset package data
@param string             $branch     The branch name
@param string             $identifier The branch identifier
Pre inits the branch of complete package .