Skip to content

Commit e1efb18

Browse files
committed
Merge pull request #5 from magento-ogre/master
[Ogres] Bug Fixes
2 parents 9a415d7 + 5b91a35 commit e1efb18

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/MagentoHackathon/Composer/Magento/Installer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class Installer extends LibraryInstaller implements InstallerInterface
6161
*/
6262
protected $_deployStrategy = "copy";
6363

64-
6564
const MAGENTO_REMOVE_DEV_FLAG = 'magento-remove-dev';
6665
const MAGENTO_MAINTANANCE_FLAG = 'maintenance.flag';
6766
const MAGENTO_CACHE_PATH = 'var/cache';
@@ -191,7 +190,6 @@ public function __construct(IOInterface $io, Composer $composer, $type = 'magent
191190
if (!empty($extra['path-mapping-translations'])) {
192191
$this->_pathMappingTranslations = (array)$extra['path-mapping-translations'];
193192
}
194-
195193
}
196194

197195

@@ -425,7 +423,6 @@ public function install(InstalledRepositoryInterface $repo, PackageInterface $pa
425423
if ($this->appendGitIgnore) {
426424
$this->appendGitIgnore($package, $this->getGitIgnoreFileLocation());
427425
}
428-
429426
}
430427

431428
/**

src/MagentoHackathon/Composer/Magento/Plugin.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class Plugin implements PluginInterface, EventSubscriberInterface
5959
*/
6060
protected $filesystem;
6161

62+
/**
63+
* @var string
64+
*/
65+
private $regenerate = '/var/.regenerate';
66+
6267
protected function initDeployManager(Composer $composer, IOInterface $io)
6368
{
6469
$this->deployManager = new DeployManager($io);
@@ -144,6 +149,8 @@ public function onNewCodeEvent(\Composer\Script\CommandEvent $event)
144149
$this->deployManager->doDeploy();
145150
$this->deployLibraries();
146151
$this->saveVendorDirPath($event->getComposer());
152+
$filename = $this->installer->getTargetDir() . $this->regenerate;
153+
touch($filename);
147154
}
148155

149156

0 commit comments

Comments
 (0)