Skip to content

Commit

Permalink
Merge pull request magento#7 from magento-ogre/MAGETWO-53352-regenera…
Browse files Browse the repository at this point in the history
…te-error

[Ogres] Bug fix
  • Loading branch information
Korshenko, Oleksii(okorshenko) committed May 24, 2016
2 parents 3dfac2f + 0abc82e commit 109eedd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/MagentoHackathon/Composer/Magento/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ class Plugin implements PluginInterface, EventSubscriberInterface
/**
* @var string
*/
private $regenerate = '/var/.regenerate';
private $regenerate = '/.regenerate';

/**
* @var string
*/
private $varFolder = '/var';

protected function initDeployManager(Composer $composer, IOInterface $io)
{
Expand Down Expand Up @@ -150,8 +155,10 @@ public function onNewCodeEvent(\Composer\Script\Event $event)
$this->deployManager->doDeploy();
$this->deployLibraries();
$this->saveVendorDirPath($event->getComposer());
$filename = $this->installer->getTargetDir() . $this->regenerate;
touch($filename);
if (file_exists($this->installer->getTargetDir() . $this->varFolder)) {
$filename = $this->installer->getTargetDir() . $this->varFolder . $this->regenerate;
touch($filename);
}
}


Expand Down

0 comments on commit 109eedd

Please sign in to comment.