mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:38:08 +08:00
Small cleanup in extension manager
This commit is contained in:
parent
ffcba1f173
commit
ad060126ae
@ -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…
x
Reference in New Issue
Block a user