mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
Small cleanup in extension manager
This commit is contained in:
parent
91a31e0149
commit
8b73582b8f
|
@ -76,9 +76,9 @@ class ExtensionManager
|
|||
{
|
||||
$this->disable($extension);
|
||||
|
||||
$class = $this->load($extension);
|
||||
$this->load($extension);
|
||||
|
||||
$this->migrate($extension, false);
|
||||
$this->migrateDown($extension);
|
||||
}
|
||||
|
||||
public function migrate($extension, $up = true)
|
||||
|
@ -96,6 +96,11 @@ class ExtensionManager
|
|||
}
|
||||
}
|
||||
|
||||
public function migrateDown($extension)
|
||||
{
|
||||
$this->migrate($extension, false);
|
||||
}
|
||||
|
||||
public function getMigrator()
|
||||
{
|
||||
return $this->migrator;
|
||||
|
|
Loading…
Reference in New Issue
Block a user