private function copyMap($package_map, &$result = NULL)
	{
		$result   = (array) $result;
		$manager  = $this->composer->getRepositoryManager();
		$packages = $manager->getLocalRepository()->getPackages();

		foreach ($packages as $package) {
			$package_name = $package->getName();
			$package_root = rtrim($this->getInstallPath($package), '/\\' . DIRECTORY_SEPARATOR);

			if (!isset($package_map[$package_name])) {
				continue;
			}

			$this->io->write(sprintf(
				self::TAB . 'Copying files from %s',
				substr($package_root, strlen(getcwd()))
			));

			foreach ($package_map[$package_name] as $a => $b) {
				$a =  trim($a, '/\\' . DIRECTORY_SEPARATOR);
				$b = ltrim($b, '/\\' . DIRECTORY_SEPARATOR);
				$result = array_replace_recursive(
					$this->copy(
						$package_root . DIRECTORY_SEPARATOR . $a,
						getcwd() . DIRECTORY_SEPARATOR . $b,
						$package_name
					),
					$result
				);
			}
		}
	}
private function copyMap($package_map, &$result = NULL)
	{
		$result   = (array) $result;
		$manager  = $this->composer->getRepositoryManager();
		$packages = $manager->getLocalRepository()->getPackages();

		foreach ($packages as $package) {
			$package_name = $package->getName();
			$package_root = rtrim($this->getInstallPath($package), '/\\' . DIRECTORY_SEPARATOR);

			if (!isset($package_map[$package_name])) {
				continue;
			}

			$this->io->write(sprintf(
				self::TAB . 'Copying files from %s',
				substr($package_root, strlen(getcwd()))
			));

			foreach ($package_map[$package_name] as $a => $b) {
				$a =  trim($a, '/\\' . DIRECTORY_SEPARATOR);
				$b = ltrim($b, '/\\' . DIRECTORY_SEPARATOR);
				$result = array_replace_recursive(
					$this->copy(
						$package_root . DIRECTORY_SEPARATOR . $a,
						getcwd() . DIRECTORY_SEPARATOR . $b,
						$package_name
					),
					$result
				);
			}
		}
	}
private function copyMap ( $ package_map , & $ result = NULL ) { $ result = ( array ) $ result ; $ manager = $ this -> composer -> getRepositoryManager ( ) ; $ packages = $ manager -> getLocalRepository ( ) -> getPackages ( ) ; foreach ( $ packages as $ package ) { $ package_name = $ package -> getName ( ) ; $ package_root = rtrim ( $ this -> getInstallPath ( $ package ) , '/\\' . DIRECTORY_SEPARATOR ) ; if ( ! isset ( $ package_map [ $ package_name ] ) ) { continue ; } $ this -> io -> write ( sprintf ( self :: TAB . 'Copying files from %s' , substr ( $ package_root , strlen ( getcwd ( ) ) ) ) ) ; foreach ( $ package_map [ $ package_name ] as $ a => $ b ) { $ a = trim ( $ a , '/\\' . DIRECTORY_SEPARATOR ) ; $ b = ltrim ( $ b , '/\\' . DIRECTORY_SEPARATOR ) ; $ result = array_replace_recursive ( $ this -> copy ( $ package_root . DIRECTORY_SEPARATOR . $ a , getcwd ( ) . DIRECTORY_SEPARATOR . $ b , $ package_name ) , $ result ) ; } } }
Copies files over from a package map

@access private
@param array $package_map A package map to lookup sources and destinations
@param array $result A reference which will be loaded up update and conflict information
@return void
Copies files over from a package map