Added support some webapp applications

devel
Alexey Berezhok 2 months ago
parent b7e404e18c
commit e4624d9398

@ -123,6 +123,9 @@ if (!empty($installer)) {
$appInstallerInfo = $app_installer->info(); $appInstallerInfo = $app_installer->info();
$supported = false; $supported = false;
$supported_versions = []; $supported_versions = [];
if ($appInstallerInfo["enabled"] != true) {
continue;
}
foreach ($php_versions as $version) { foreach ($php_versions as $version) {
if (in_array($version, $appInstallerInfo["php_support"])) { if (in_array($version, $appInstallerInfo["php_support"])) {
$supported = true; $supported = true;

@ -38,20 +38,20 @@ abstract class BaseSetup implements InstallerInterface {
} }
public function info() { public function info() {
$this->appInfo["enabled"] = true; //$this->appInfo["enabled"] = true;
if (isset($this->config["server"]["php"]["supported"])) { if (isset($this->config["server"]["php"]["supported"])) {
$this->appInfo["php_support"] = $this->config["server"]["php"]["supported"]; $this->appInfo["php_support"] = $this->config["server"]["php"]["supported"];
} else { } else {
$this->appInfo["php_support"] = [ $this->appInfo["php_support"] = [
"5.6", "56",
"7.0", "70",
"7.1", "71",
"7.2", "72",
"7.3", "73",
"7.4", "74",
"8.0", "80",
"8.1", "81",
"8.2", "82",
]; ];
} }
return $this->appInfo; return $this->appInfo;

@ -9,7 +9,7 @@ class DokuWikiSetup extends BaseSetup {
protected $appInfo = [ protected $appInfo = [
"name" => "DokuWiki", "name" => "DokuWiki",
"group" => "wiki", "group" => "wiki",
"enabled" => true, "enabled" => false,
"version" => "2023-04-04a", "version" => "2023-04-04a",
"thumbnail" => "dokuwiki-logo.svg", "thumbnail" => "dokuwiki-logo.svg",
]; ];
@ -57,7 +57,7 @@ class DokuWikiSetup extends BaseSetup {
"template" => "default", "template" => "default",
], ],
"php" => [ "php" => [
"supported" => ["7.3", "7.4", "8.0", "8.1"], "supported" => ["73", "74", "80", "81"],
], ],
], ],
]; ];

@ -10,7 +10,7 @@ class DrupalSetup extends BaseSetup {
protected $appInfo = [ protected $appInfo = [
"name" => "Drupal", "name" => "Drupal",
"group" => "cms", "group" => "cms",
"enabled" => "yes", "enabled" => false,
"version" => "latest", "version" => "latest",
"thumbnail" => "drupal-thumb.png", "thumbnail" => "drupal-thumb.png",
]; ];
@ -30,7 +30,7 @@ class DrupalSetup extends BaseSetup {
"template" => "drupal-composer", "template" => "drupal-composer",
], ],
"php" => [ "php" => [
"supported" => ["8.1", "8.2"], "supported" => ["81", "82"],
], ],
], ],
]; ];

@ -32,7 +32,7 @@ class FlarumSetup extends BaseSetup {
"template" => "flarum", "template" => "flarum",
], ],
"php" => [ "php" => [
"supported" => ["8.0", "8.1", "8.2"], "supported" => ["80", "81", "82"],
], ],
], ],
]; ];

@ -32,7 +32,7 @@ class GravSetup extends BaseSetup {
"template" => "grav", "template" => "grav",
], ],
"php" => [ "php" => [
"supported" => ["7.4", "8.0", "8.1"], "supported" => ["74", "80", "81"],
], ],
], ],
]; ];

@ -26,7 +26,7 @@ class LaravelSetup extends BaseSetup {
"template" => "laravel", "template" => "laravel",
], ],
"php" => [ "php" => [
"supported" => ["8.1", "8.2"], "supported" => ["81", "82"],
], ],
], ],
]; ];

@ -9,7 +9,7 @@ class MediaWikiSetup extends BaseSetup {
protected $appInfo = [ protected $appInfo = [
"name" => "MediaWiki", "name" => "MediaWiki",
"group" => "cms", "group" => "cms",
"enabled" => true, "enabled" => false,
"version" => "1.40.0", "version" => "1.40.0",
"thumbnail" => "MediaWiki-2020-logo.svg", //Max size is 300px by 300px "thumbnail" => "MediaWiki-2020-logo.svg", //Max size is 300px by 300px
]; ];
@ -34,7 +34,7 @@ class MediaWikiSetup extends BaseSetup {
"template" => "default", "template" => "default",
], ],
"php" => [ "php" => [
"supported" => ["7.4", "8.0"], "supported" => ["74", "80"],
], ],
], ],
]; ];

@ -8,7 +8,7 @@ class NextcloudSetup extends BaseSetup {
protected $appInfo = [ protected $appInfo = [
"name" => "Nextcloud", "name" => "Nextcloud",
"group" => "cloud", "group" => "cloud",
"enabled" => true, "enabled" => false,
"version" => "latest", "version" => "latest",
"thumbnail" => "nextcloud-thumb.png", "thumbnail" => "nextcloud-thumb.png",
]; ];
@ -29,7 +29,7 @@ class NextcloudSetup extends BaseSetup {
"template" => "owncloud", "template" => "owncloud",
], ],
"php" => [ "php" => [
"supported" => ["8.0", "8.1", "8.2"], "supported" => ["80", "81", "82"],
], ],
], ],
]; ];

@ -34,7 +34,7 @@ class OpencartSetup extends BaseSetup {
"template" => "opencart", "template" => "opencart",
], ],
"php" => [ "php" => [
"supported" => ["7.4", "8.0", "8.1", "8.2"], "supported" => ["74", "80", "81", "82"],
], ],
], ],
]; ];

@ -8,7 +8,7 @@ class PrestashopSetup extends BaseSetup {
protected $appInfo = [ protected $appInfo = [
"name" => "Prestashop", "name" => "Prestashop",
"group" => "ecommerce", "group" => "ecommerce",
"enabled" => true, "enabled" => false,
"version" => "8.1.0", "version" => "8.1.0",
"thumbnail" => "prestashop-thumb.png", "thumbnail" => "prestashop-thumb.png",
]; ];
@ -35,7 +35,7 @@ class PrestashopSetup extends BaseSetup {
"template" => "prestashop", "template" => "prestashop",
], ],
"php" => [ "php" => [
"supported" => ["8.0", "8.1"], "supported" => ["80", "81"],
], ],
], ],
]; ];

@ -8,7 +8,7 @@ class SymfonySetup extends BaseSetup {
protected $appInfo = [ protected $appInfo = [
"name" => "Symfony", "name" => "Symfony",
"group" => "framework", "group" => "framework",
"enabled" => true, "enabled" => false,
"version" => "latest", "version" => "latest",
"thumbnail" => "symfony-thumb.png", "thumbnail" => "symfony-thumb.png",
]; ];
@ -26,7 +26,7 @@ class SymfonySetup extends BaseSetup {
"template" => "symfony4-5", "template" => "symfony4-5",
], ],
"php" => [ "php" => [
"supported" => ["8.1", "8.2"], "supported" => ["81", "82"],
], ],
], ],
]; ];

@ -10,7 +10,7 @@ class WordpressSetup extends BaseSetup {
protected $appInfo = [ protected $appInfo = [
"name" => "WordPress", "name" => "WordPress",
"group" => "cms", "group" => "cms",
"enabled" => true, "enabled" => false,
"version" => "latest", "version" => "latest",
"thumbnail" => "wp-thumb.png", "thumbnail" => "wp-thumb.png",
]; ];
@ -61,7 +61,7 @@ class WordpressSetup extends BaseSetup {
"template" => "wordpress", "template" => "wordpress",
], ],
"php" => [ "php" => [
"supported" => ["7.4", "8.0", "8.1", "8.2"], "supported" => ["74", "80", "81", "82"],
], ],
], ],
]; ];

Loading…
Cancel
Save