Skip to content

Commit 59c9786

Browse files
author
Wojciech Naruniec
committed
Add initial code to overwrite deploystrategy
Added initial code which overrides deploystrategy if PLATFORM_PROJECT environment variable is set.
1 parent b94f3f4 commit 59c9786

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/MagentoHackathon/Composer/Magento/Installer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,13 @@ public function __construct(IOInterface $io, Composer $composer, $type = 'magent
176176
$this->isForced = (bool)$extra['magento-force'];
177177
}
178178

179+
if (false !== getenv('PLATFORM_PROJECT')) {
180+
$this->setDeployStrategy('none');
181+
}
182+
179183
if (isset($extra['magento-deploystrategy'])) {
180184
$this->setDeployStrategy((string)$extra['magento-deploystrategy']);
181185
}
182-
183-
// @todo this is possible place to add env related modification
184186

185187
if (!empty($extra['auto-append-gitignore'])) {
186188
$this->appendGitIgnore = true;

0 commit comments

Comments
 (0)