Skip to content

Commit

Permalink
Merge de75efe into fe28f9f
Browse files Browse the repository at this point in the history
  • Loading branch information
mfendeksilverstripe committed Apr 6, 2020
2 parents fe28f9f + de75efe commit f5b03bd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Extensions/ComposerLoaderExtension.php
Expand Up @@ -120,10 +120,17 @@ public function onAfterBuild()
}

$originalDir = getcwd();
chdir(BASE_PATH);

if ($originalDir !== BASE_PATH) {
chdir(BASE_PATH);
}

/** @var Composer $composer */
$composer = Factory::create(new NullIO());
$this->setComposer($composer);
chdir($originalDir);

if ($originalDir !== BASE_PATH) {
chdir($originalDir);
}
}
}

0 comments on commit f5b03bd

Please sign in to comment.