Skip to content

Commit 3a45a39

Browse files
FlyingmanaDavid Verholen
authored andcommitted
simple workaround for coreInstaller update problem
1 parent 42699b4 commit 3a45a39

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/MagentoHackathon/Composer/Magento/Installer/CoreInstaller.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Composer\Repository\InstalledRepositoryInterface;
1212
use InvalidArgumentException;
1313
use MagentoHackathon\Composer\Magento\Deploystrategy\Copy;
14+
use MagentoHackathon\Composer\Magento\Deploy\Manager\Entry;
1415

1516
/**
1617
* Class CoreInstaller
@@ -305,6 +306,20 @@ public function getDeployStrategy(PackageInterface $package, $strategy = null)
305306
return new Copy($this->getSourceDir($package), $this->getTargetDir());
306307
}
307308

309+
/**
310+
* @param PackageInterface $package
311+
*
312+
* @throws \ErrorException
313+
*/
314+
protected function addEntryToDeployManager(PackageInterface $package) {
315+
$targetStrategy = $this->getDeployStrategy($package);
316+
$targetStrategy->setMappings($this->getParser($package)->getMappings());
317+
$deployManagerEntry = new Entry();
318+
$deployManagerEntry->setPackageName($package->getName());
319+
$deployManagerEntry->setDeployStrategy($targetStrategy);
320+
$deployManagerEntry->getDeployStrategy()->deploy();
321+
}
322+
308323
/**
309324
* @throws \ErrorException
310325
*/

0 commit comments

Comments
 (0)