Skip to content
Permalink
Browse files

유료 플러그인 설치 안되는 버그 수정

  • Loading branch information...
woongbin committed Jul 17, 2019
1 parent 84ea67f commit a1245b0ec4967500d1b30108a4f04a1d871f8043
Showing with 2 additions and 5 deletions.
  1. +2 −5 core/src/Xpressengine/Plugin/Composer/Composer.php
@@ -37,7 +37,7 @@ class Composer
protected static $pluginsDir = 'plugins';
protected static $packagistUrl = null;
protected static $packagistUrl = 'store.xehub.io';
protected static $packagistToken = null;
@@ -126,10 +126,7 @@ public static function preUpdateOrInstall(Event $event)
public static function postDependenciesSolving(InstallerEvent $event)
{
if (static::$packagistUrl !== null && static::$packagistToken !== null) {
$io = $event->getIO();
$host = parse_url(static::$packagistUrl, PHP_URL_HOST);
$token = static::$packagistToken;
$io->setAuthentication($host, $token);
$event->getIO()->setAuthentication(static::$packagistUrl, static::$packagistToken);
}
}

0 comments on commit a1245b0

Please sign in to comment.
You can’t perform that action at this time.