summaryrefslogtreecommitdiff
path: root/app/Console
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-24 21:39:36 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-24 21:39:36 -0400
commit8ba05940e9ee76e95ce808d8da163c2af29e4e93 (patch)
treeaa25adca7227774dfbbcddfd5e294ef3e44f7692 /app/Console
parentb9f2d5650d464983a80f84f3ed0845028a355c92 (diff)
Filter non compatible plugins
Diffstat (limited to 'app/Console')
-rw-r--r--app/Console/PluginUpgradeCommand.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Console/PluginUpgradeCommand.php b/app/Console/PluginUpgradeCommand.php
index 6ec5836d..839124b1 100644
--- a/app/Console/PluginUpgradeCommand.php
+++ b/app/Console/PluginUpgradeCommand.php
@@ -3,6 +3,7 @@
namespace Kanboard\Console;
use Kanboard\Core\Plugin\Base as BasePlugin;
+use Kanboard\Core\Plugin\Directory;
use Kanboard\Core\Plugin\Installer;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -24,7 +25,7 @@ class PluginUpgradeCommand extends BaseCommand
}
$installer = new Installer($this->container);
- $availablePlugins = $this->httpClient->getJson(PLUGIN_API_URL);
+ $availablePlugins = Directory::getInstance($this->container)->getAvailablePlugins();
foreach ($this->pluginLoader->getPlugins() as $installedPlugin) {
$pluginDetails = $this->getPluginDetails($availablePlugins, $installedPlugin);