Skip to content

Commit

Permalink
유료 플러그인 설치 안되는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
woongbin committed Jul 17, 2019
1 parent 84ea67f commit a1245b0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/Xpressengine/Plugin/Composer/Composer.php
Expand Up @@ -37,7 +37,7 @@ class Composer

protected static $pluginsDir = 'plugins';

protected static $packagistUrl = null;
protected static $packagistUrl = 'store.xehub.io';

protected static $packagistToken = null;

Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit a1245b0

Please sign in to comment.