protected function mergeAutoload($type, RootPackageInterface $root)
    {
        $getter = 'get' . ucfirst($type);
        $setter = 'set' . ucfirst($type);

        $autoload = $this->package->{$getter}();
        if (empty($autoload)) {
            return;
        }

        $unwrapped = self::unwrapIfNeeded($root, $setter);
        $unwrapped->{$setter}(array_merge_recursive(
            $root->{$getter}(),
            $this->fixRelativePaths($autoload)
        ));
    }
protected function mergeAutoload($type, RootPackageInterface $root)
    {
        $getter = 'get' . ucfirst($type);
        $setter = 'set' . ucfirst($type);

        $autoload = $this->package->{$getter}();
        if (empty($autoload)) {
            return;
        }

        $unwrapped = self::unwrapIfNeeded($root, $setter);
        $unwrapped->{$setter}(array_merge_recursive(
            $root->{$getter}(),
            $this->fixRelativePaths($autoload)
        ));
    }
protected function mergeAutoload ( $ type , RootPackageInterface $ root ) { $ getter = 'get' . ucfirst ( $ type ) ; $ setter = 'set' . ucfirst ( $ type ) ; $ autoload = $ this -> package -> { $ getter } ( ) ; if ( empty ( $ autoload ) ) { return ; } $ unwrapped = self :: unwrapIfNeeded ( $ root , $ setter ) ; $ unwrapped -> { $ setter } ( array_merge_recursive ( $ root -> { $ getter } ( ) , $ this -> fixRelativePaths ( $ autoload ) ) ) ; }
Merge autoload or autoload-dev into a RootPackageInterface

@param string $type 'autoload' or 'devAutoload'
@param RootPackageInterface $root
Merge autoload or autoload - dev into a RootPackageInterface