mirror of
https://github.com/flarum/core.git
synced 2025-05-16 12:19:41 +02:00
Small cleanup in extension manager
This commit is contained in:
parent
ffcba1f173
commit
ad060126ae
@ -76,9 +76,9 @@ class ExtensionManager
|
|||||||
{
|
{
|
||||||
$this->disable($extension);
|
$this->disable($extension);
|
||||||
|
|
||||||
$class = $this->load($extension);
|
$this->load($extension);
|
||||||
|
|
||||||
$this->migrate($extension, false);
|
$this->migrateDown($extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function migrate($extension, $up = true)
|
public function migrate($extension, $up = true)
|
||||||
@ -96,6 +96,11 @@ class ExtensionManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function migrateDown($extension)
|
||||||
|
{
|
||||||
|
$this->migrate($extension, false);
|
||||||
|
}
|
||||||
|
|
||||||
public function getMigrator()
|
public function getMigrator()
|
||||||
{
|
{
|
||||||
return $this->migrator;
|
return $this->migrator;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user