1
0
mirror of https://github.com/flarum/core.git synced 2025-02-24 03:05:12 +01:00

migrate: Use existing public API to filter extensions

This commit is contained in:
Franz Liedke 2018-09-26 23:03:48 +02:00
parent 8621500501
commit b823a9df47
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -67,11 +67,7 @@ class MigrateCommand extends AbstractCommand
$extensions = $this->container->make('Flarum\Extension\ExtensionManager');
$extensions->getMigrator()->setOutput($this->output);
foreach ($extensions->getExtensions() as $name => $extension) {
if (! $extension->isEnabled()) {
continue;
}
foreach ($extensions->getEnabledExtensions() as $name => $extension) {
$this->info('Migrating extension: '.$name);
$extensions->migrate($extension);