mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
migrate: Use existing public API to filter extensions
This commit is contained in:
parent
7e8279ec04
commit
5610824e96
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user