Skip to content

Commit 3dfac2f

Browse files
author
Korshenko, Oleksii(okorshenko)
committed
Merge pull request #6 from magento-ogre/master
[Ogres] Bug Fixes
2 parents e1efb18 + 0383009 commit 3dfac2f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/MagentoHackathon/Composer/Magento/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function __construct(IOInterface $io, Composer $composer, $type = 'magent
175175
$this->isForced = (bool)$extra['magento-force'];
176176
}
177177

178-
if (false !== getenv('PLATFORM_PROJECT')) {
178+
if (false !== getenv('MAGENTO_CLOUD_PROJECT')) {
179179
$this->setDeployStrategy('none');
180180
}
181181

src/MagentoHackathon/Composer/Magento/Plugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Composer\Plugin\PluginEvents;
2121
use Composer\EventDispatcher\EventSubscriberInterface;
2222
use Composer\Script\ScriptEvents;
23+
use Composer\Installer\PackageEvents;
2324
use Composer\Util\Filesystem;
2425
use Symfony\Component\Process\Process;
2526

@@ -103,13 +104,13 @@ public static function getSubscribedEvents()
103104
ScriptEvents::POST_UPDATE_CMD => array(
104105
array('onNewCodeEvent', 0),
105106
),
106-
ScriptEvents::POST_PACKAGE_UNINSTALL => array(
107+
PackageEvents::POST_PACKAGE_UNINSTALL => array(
107108
array('onPackageUnistall', 0),
108109
)
109110
);
110111
}
111112

112-
public function onPackageUnistall(\Composer\Script\PackageEvent $event)
113+
public function onPackageUnistall(\Composer\Installer\PackageEvent $event)
113114
{
114115
$ds = DIRECTORY_SEPARATOR;
115116
$package = $event->getOperation()->getPackage();
@@ -138,9 +139,9 @@ public function onCommandEvent(\Composer\Plugin\CommandEvent $event)
138139
/**
139140
* event listener is named this way, as it listens for events leading to changed code files
140141
*
141-
* @param \Composer\Script\CommandEvent $event
142+
* @param \Composer\Script\Event $event
142143
*/
143-
public function onNewCodeEvent(\Composer\Script\CommandEvent $event)
144+
public function onNewCodeEvent(\Composer\Script\Event $event)
144145
{
145146
if ($this->io->isDebug()) {
146147
$this->io->write('start magento deploy via deployManager');

0 commit comments

Comments
 (0)