mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
Update MicroweberComposerClientHelper.php
This commit is contained in:
parent
8cb73da74c
commit
02214d8565
1 changed files with 3 additions and 5 deletions
|
@ -7,7 +7,6 @@ use MicroweberPackages\SharedServerScripts\MicroweberDownloader;
|
|||
|
||||
class MicroweberComposerClientHelper
|
||||
{
|
||||
|
||||
public function getComposerClientInstance()
|
||||
{
|
||||
// The module connector must have own instance of composer client
|
||||
|
@ -33,11 +32,10 @@ class MicroweberComposerClientHelper
|
|||
{
|
||||
$coreDownloader = new MicroweberDownloader();
|
||||
|
||||
$updateAppChannel = 'stable';
|
||||
if ($updateAppChannel == 'stable') {
|
||||
$coreDownloader->setReleaseSource(MicroweberDownloader::STABLE_RELEASE);
|
||||
} else {
|
||||
if (setting('microweber.update_app_channel') == 'development') {
|
||||
$coreDownloader->setReleaseSource(MicroweberDownloader::DEV_RELEASE);
|
||||
} else {
|
||||
$coreDownloader->setReleaseSource(MicroweberDownloader::STABLE_RELEASE);
|
||||
}
|
||||
|
||||
$coreDownloader->setComposerClient($this->getComposerClientInstance());
|
||||
|
|
Loading…
Reference in a new issue